0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Don't produce an error report for normal stream process exits

This commit is contained in:
Loïc Hoguin 2020-11-23 09:53:45 +01:00
parent c47f1e5fb8
commit e12d7bbe21
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764

View file

@ -294,7 +294,9 @@ request_process(Req, Env, Middlewares) ->
try
execute(Req, Env, Middlewares)
catch
exit:Reason:Stacktrace ->
exit:Reason={shutdown, _}:Stacktrace ->
erlang:raise(exit, Reason, Stacktrace);
exit:Reason:Stacktrace when Reason =/= normal, Reason =/= shutdown ->
erlang:raise(exit, {Reason, Stacktrace}, Stacktrace)
end.