Skip to content

Commit

Permalink
show error.to_s along with backtrace for low-level error
Browse files Browse the repository at this point in the history
  • Loading branch information
bporterfield committed Apr 12, 2012
1 parent 56a6e2f commit b93e315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puma/server.rb
Expand Up @@ -605,7 +605,7 @@ def read_body(env, client, body, cl)
# 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.
Expand Down

0 comments on commit b93e315

Please sign in to comment.