lib/angelo/responder.rb in angelo-0.5.0 vs lib/angelo/responder.rb in angelo-0.5.1
- old
+ new
@@ -71,13 +71,10 @@
def handle_error _error, type = :internal_server_error, report = @base.report_errors?
err_msg = error_message _error
Angelo.log @method, @connection, @request, nil, type, err_msg.size
@connection.respond type, headers, err_msg
@connection.close
- if report
- error "#{_error.class} - #{_error.message}"
- ::STDERR.puts _error.backtrace
- end
+ error _error if report
end
def error_message _error
case
when respond_with?(:json)