lib/bolt/bolt_option_parser.rb in bolt-1.15.0 vs lib/bolt/bolt_option_parser.rb in bolt-1.16.0

- old
+ new

@@ -312,12 +312,12 @@ end def parse_params(params) json = get_arg_input(params) JSON.parse(json) - rescue JSON::ParserError => err - raise Bolt::CLIError, "Unable to parse --params value as JSON: #{err}" + rescue JSON::ParserError => e + raise Bolt::CLIError, "Unable to parse --params value as JSON: #{e}" end def get_arg_input(value) if value.start_with?('@') file = value.sub(/^@/, '') @@ -329,10 +329,10 @@ end end def read_arg_file(file) File.read(File.expand_path(file)) - rescue StandardError => err - raise Bolt::FileError.new("Error attempting to read #{file}: #{err}", file) + rescue StandardError => e + raise Bolt::FileError.new("Error attempting to read #{file}: #{e}", file) end end end