Project

General

Profile

« Previous | Next » 

Revision 7c30a804

Added by Marc Dequènes about 14 years ago

  • ID 7c30a80459804cbfac2dfda5dae430b80b64331d

[fix] corrected crash due to exceptions returning non-tm

View differences:

lib/cyborghood/command_runner.rb
begin
execute_cmd(order.user, cmd.cmdsplit, order.shared_parameters, result)
rescue CyberError => e
result.message = e.message.capitalize + "."
result.message = tm_(e.message.capitalize + ".")
rescue
logger.error "Command crashed: " + $!
logger.error "Crash trace: " + $!.backtrace.join("\n")

Also available in: Unified diff