lib/bolt/logger.rb in bolt-0.20.2 vs lib/bolt/logger.rb in bolt-0.20.3
- old
+ new
@@ -54,10 +54,10 @@
truncate: (params[:append] == false),
layout: default_layout,
level: default_level
)
rescue ArgumentError => e
- raise Bolt::CLIError, "Failed to open log #{name}: #{e.message}"
+ raise Bolt::Error.new("Failed to open log #{name}: #{e.message}", 'bolt/log-error')
end
root_logger.add_appenders appender
end