Skip to content

A platform for community discussion. Free, open, simple.

FIX: remap shouldn't fail silently when an error occurs

OsamaSayegh91b73e0c2df6
diff --git a/script/discourse b/script/discourse
index 13894282dd0..22929741a4d 100755
--- a/script/discourse
+++ b/script/discourse
@@ -264,6 +264,8 @@ WHERE table_schema='public' and (data_type like 'char%' or data_type like 'text%
puts "#{result.cmd_tuples} rows affected!"
rescue => ex
puts "Error: #{ex}"
+ puts "The remap has only been partially applied due to the error above. Please re-run the script again."
+ exit(1)
end
end
end