Skip to content

Commit

Permalink
Printing error message in WP.com migrator. #671.
Browse files Browse the repository at this point in the history
  • Loading branch information
parkr committed Jan 18, 2013
1 parent 3bca5c3 commit 2615291
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/jekyll/migrators/wordpressdotcom.rb
Expand Up @@ -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

Expand Down

0 comments on commit 2615291

Please sign in to comment.