Catch all other exceptions too

This commit is contained in:
David Heinemeier Hansson
2023-01-30 13:52:24 +01:00
parent 7c72dfcb5d
commit cd8570d776

View File

@@ -10,4 +10,7 @@ begin
rescue SSHKit::Runner::ExecuteError => e
puts " \e[31mERROR (#{e.cause.class}): #{e.cause.message}\e[0m"
puts e.cause.backtrace if ENV["VERBOSE"]
rescue => e
puts " \e[31mERROR (#{e.class}): #{e.message}\e[0m"
puts e.backtrace if ENV["VERBOSE"]
end