Skip to content

Commit

Permalink
handle generic exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
gnufied committed Mar 28, 2009
1 parent a55973f commit c8fdeef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/lib/master_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ def receive_data p_data
else; debug_logger.info("Invalid request")
end
end
rescue Exception => e
debug_logger.info(e)
debug_logger.info(e.backtrace.join("\n"))
rescue Object => bdrb_error
debug_logger.info(bdrb_error)
debug_logger.info(bdrb_error.backtrace.join("\n"))
send_object(nil)
end
end
Expand Down

0 comments on commit c8fdeef

Please sign in to comment.