Permalink
Browse files

puts database errors when Airbrake not defined

  • Loading branch information...
1 parent 1332014 commit 2a4bd43c8c609115fc5bc842dfd1aff9318817a2 Jesse Stuart committed Dec 14, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/tentd/api/middleware.rb
@@ -24,6 +24,8 @@ def call(env)
raise
elsif defined?(Airbrake)
Airbrake.notify_or_ignore(e, :rack_env => env)
+ else
+ puts $!.inspect, $@
end
error_response(422, 'Invalid Attributes')
rescue Sequel::ValidationFailed

0 comments on commit 2a4bd43

Please sign in to comment.