Improved exception handling in service.

master
Luka Vandervelden 2020-01-04 13:30:25 +01:00
parent 4568f3204d
commit 9c84fe7368
1 changed files with 5 additions and 0 deletions

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