Printing error message in WP.com migrator. #671.
This commit is contained in:
parent
3bca5c3297
commit
2615291e6d
|
@ -59,10 +59,11 @@ module Jekyll
|
||||||
f.puts '---'
|
f.puts '---'
|
||||||
f.puts item.at('content:encoded').inner_text
|
f.puts item.at('content:encoded').inner_text
|
||||||
end
|
end
|
||||||
rescue
|
rescue => e
|
||||||
puts "Couldn't import post!"
|
puts "Couldn't import post!"
|
||||||
puts "Title: #{title}"
|
puts "Title: #{title}"
|
||||||
puts "Name/Slug: #{name}\n"
|
puts "Name/Slug: #{name}\n"
|
||||||
|
puts "Error: #{e.message}"
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue