1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

show error.to_s along with backtrace for low-level error

This commit is contained in:
Ben Porterfield 2012-04-12 14:20:06 -07:00
parent 56a6e2fa74
commit b93e3157f9

View file

@ -605,7 +605,7 @@ module Puma
# A fallback rack response if +@app+ raises as exception.
#
def lowlevel_error(e)
[500, {}, ["Puma caught this error:\n#{e.backtrace.join("\n")}"]]
[500, {}, ["Puma caught this error: #{e}\n#{e.backtrace.join("\n")}"]]
end
# Wait for all outstanding requests to finish.