FIX: error reporting from SystemMessage.create

This commit is contained in:
Neil Lalonde 2016-11-30 13:16:24 -05:00
parent 57d0369894
commit 4f8c6b2d83
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class SystemMessage
post = creator.create
if creator.errors.present?
raise StandardError, creator.errors.to_s
raise StandardError, creator.errors.full_messages.join(" ")
end
UserArchivedMessage.create!(user: Discourse.site_contact_user, topic: post.topic)