Skip to content

Commit

Permalink
Fixed problem with conversion of exception to FaultEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
micapam authored and pillowfactory committed Dec 10, 2009
1 parent 26a1acf commit 900dfbb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/rubyamf_quickly.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.