lib/console_runner.rb in console_runner-0.2.3 vs lib/console_runner.rb in console_runner-0.3.1
- old
+ new
@@ -38,11 +38,11 @@
if c_line_parser.initialize_method
LOGGER.debug 'Executing #inistialize method...'
c_line_parser.initialize_method.cmd_opts.map { |k, v| LOGGER.debug "\t#{k} = #{v}" }
end
LOGGER.debug "Executing ##{action.name} method..."
- c_line_parser.method.cmd_opts.map { |k, v| LOGGER.debug "\t#{k} = #{v}" }
+ c_line_parser.method.cmd_opts.map { |k, v| LOGGER.debug "\t#{k} = #{v}" }
LOGGER.debug("Remaining arguments: #{ARGV.inspect}") if ARGV != []
LOGGER.info SEPARATOR
require file_path
class_full_name = file_parser.clazz.title
@@ -73,9 +73,11 @@
if success_status
LOGGER.info "Finish Time: #{finish_time} (Duration: #{((finish_time - start_time) / 60).round(2) } minutes)"
LOGGER.success 'Execution status: ' + status
else
LOGGER.error 'Execution status: ' + status
+ LOGGER.error e.message if e
+ LOGGER.error SEPARATOR
end
end
end
\ No newline at end of file