mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 18:58:10 +00:00
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…
x
Reference in New Issue
Block a user