FIX: error reporting from SystemMessage.create
This commit is contained in:
parent
57d0369894
commit
4f8c6b2d83
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue