Skip to content

Commit

Permalink
Bug fix for race condition error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sydney committed Apr 25, 2017
1 parent 546f3ac commit e8c5b4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/backbeat/web.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class API < Grape::API
end

rescue_from :all do |e|
Logger.error({ error_type: e.class, error: e.message, backtrace: e.backtrace })
Logger.error({ error_type: e.class.to_s, error: e.message, backtrace: e.backtrace })
Rack::Response.new({ error: e.message }.to_json, 500, { "Content-type" => "application/json" }).finish
end

Expand Down

0 comments on commit e8c5b4d

Please sign in to comment.