plugins/application/lib/application/command/executor.rb in redcar-0.3.5 vs plugins/application/lib/application/command/executor.rb in redcar-0.3.6

- old
+ new

@@ -20,17 +20,25 @@ @command_instance.environment(Executor.current_environment) begin result = @command_instance.execute rescue Object => e @command_instance.error = e + print_command_error(e) rescue java.lang.StackOverflowError => e @command_instance.error = e + print_command_error(e) end record result end private + + def print_command_error(e) + puts "Error in command #{@command_instance.class}" + puts e.class.to_s + ": " + e.message + puts e.backtrace + end def record if Redcar.app.history Redcar.app.history.record(@command_instance) end