Permalink
Browse files

Fixed problem with conversion of exception to FaultEvent

  • Loading branch information...
1 parent 26a1acf commit 900dfbbbda9f2777e9785387d38eee2dc885c665 @micapam micapam committed with Dec 10, 2009
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/rubyamf_quickly.rb
View
6 lib/rubyamf_quickly.rb
@@ -36,10 +36,10 @@ def prepare_amf_params
# Convert any unhandled exception to an AMF FaultObject so it triggers a FaultEvent
def amf_exception_handler(ex)
- RAILS_DEFAULT_LOGGER.error exception.message
- RAILS_DEFAULT_LOGGER.error exception.backtrace.join( "\n" )
+ RAILS_DEFAULT_LOGGER.error ex.message
+ RAILS_DEFAULT_LOGGER.error ex.backtrace.join( "\n" )
render :amf => FaultObject.new(ex.to_s) if is_amf
end
end
end
-end
+end

0 comments on commit 900dfbb

Please sign in to comment.