mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
Improve error messages.
This commit is contained in:
parent
69661be500
commit
e4d7e4fbe3
1 changed files with 1 additions and 1 deletions
|
@ -182,7 +182,7 @@ class PostCreator
|
|||
create
|
||||
|
||||
if !self.errors.full_messages.empty?
|
||||
raise ActiveRecord::RecordNotSaved.new("Failed to create post", self)
|
||||
raise ActiveRecord::RecordNotSaved.new("Failed to create post: #{self.errors.full_messages}")
|
||||
end
|
||||
|
||||
@post
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue