Improved exception handling in service.

This commit is contained in:
Luka Vandervelden 2020-01-04 13:30:25 +01:00
parent 4568f3204d
commit 9c84fe7368

View File

@ -377,5 +377,10 @@ begin
rescue e : Service::Exception
context.error e.message
exit 2
rescue e
STDERR.puts "unhandled exception: #{e.message}"
e.backtrace.map do |line|
STDERR << " - " << line << '\n'
end
end