From 91b73e0c2df649eb3e012a6a52c25ea36c43f9f1 Mon Sep 17 00:00:00 2001 From: OsamaSayegh Date: Mon, 18 Jun 2018 14:24:54 +0300 Subject: [PATCH] FIX: remap shouldn't fail silently when an error occurs --- script/discourse | 2 ++ 1 file changed, 2 insertions(+) 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