Skip to content
Browse files

Printing error message in WP.com migrator. #671.

  • Loading branch information...
1 parent 3bca5c3 commit 2615291e6d69109875bdb4475ab03156fa081c84 @parkr parkr committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/jekyll/migrators/wordpressdotcom.rb
View
3 lib/jekyll/migrators/wordpressdotcom.rb
@@ -59,10 +59,11 @@ def self.process(filename = "wordpress.xml")
f.puts '---'
f.puts item.at('content:encoded').inner_text
end
- rescue
+ rescue => e
puts "Couldn't import post!"
puts "Title: #{title}"
puts "Name/Slug: #{name}\n"
+ puts "Error: #{e.message}"
next
end

0 comments on commit 2615291

Please sign in to comment.
Something went wrong with that request. Please try again.