Improved exception handling in service.

master
Luka Vandervelden 4 years ago
parent 4568f3204d
commit 9c84fe7368

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

Loading…
Cancel
Save