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

This commit is contained in:
OsamaSayegh 2018-06-18 14:24:54 +03:00 committed by Sam
parent c9feadf9ec
commit 91b73e0c2d
1 changed files with 2 additions and 0 deletions

View File

@ -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