Include the error messages so we can debug this easier

This commit is contained in:
Robin Ward 2015-08-21 12:43:10 -04:00
parent 2b72bd3592
commit 7ffdc43091
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ class QueuedPost < ActiveRecord::Base
created_post = creator.create
unless created_post && creator.errors.blank?
raise StandardError, "Failed to create post #{raw[0..100]} #{creator.errors}"
raise StandardError, "Failed to create post #{raw[0..100]} #{creator.errors.full_messages.inspect}"
end
end