mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Show the reason the topic couldn't be split rather than a generic error.
This commit is contained in:
@@ -275,6 +275,8 @@ class TopicsController < ApplicationController
|
||||
|
||||
dest_topic = move_posts_to_destination(topic)
|
||||
render_topic_changes(dest_topic)
|
||||
rescue ActiveRecord::RecordInvalid => ex
|
||||
render_json_error(ex)
|
||||
end
|
||||
|
||||
def change_post_owners
|
||||
|
||||
Reference in New Issue
Block a user