mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: better error message when trying to approve post for closed/deleted topic
This commit is contained in:
@@ -70,7 +70,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.full_messages.inspect}"
|
||||
raise StandardError.new(creator.errors.full_messages.join(" "))
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user