Improved exception handling in service.
This commit is contained in:
parent
4568f3204d
commit
9c84fe7368
@ -377,5 +377,10 @@ begin
|
|||||||
rescue e : Service::Exception
|
rescue e : Service::Exception
|
||||||
context.error e.message
|
context.error e.message
|
||||||
exit 2
|
exit 2
|
||||||
|
rescue e
|
||||||
|
STDERR.puts "unhandled exception: #{e.message}"
|
||||||
|
e.backtrace.map do |line|
|
||||||
|
STDERR << " - " << line << '\n'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user