Skip to content

Commit 8897685

Browse files
author
Mohammed Ehab
committed
Use invocationError
1 parent 2a6f59c commit 8897685

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/aws_lambda_ric/lambda_server.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ def next_invocation
3434
)
3535
end
3636
rescue SignalException => sig
37-
puts "Next invocation HTTP request from the runtime interface client was interrupted with a #{sig} SIGNAL, gracefully shutting down."
38-
exit 0
37+
raise LambdaErrors::InvocationError.new("Next invocation HTTP request from the runtime interface client was interrupted with a #{sig} SIGNAL, gracefully shutting down.")
3938
rescue LambdaErrors::InvocationError => e
4039
raise e
4140
rescue StandardError => e

0 commit comments

Comments
 (0)