Skip to content

Commit

Permalink
(chocolateyGH-571) Arg parsing error should be warning
Browse files Browse the repository at this point in the history
Instead of logging a debug message, argument parsing errors should be
reported as warnings in case the argument doesn't actually evaluate
appropriately later.
  • Loading branch information
ferventcoder committed Apr 9, 2016
1 parent f883846 commit 1140679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chocolatey/infrastructure/commandline/Options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ protected virtual bool Parse (string argument, OptionContext c)
}
catch (Exception ex)
{
"chocolatey".Log().Debug("Parsing {0} resulted in exception:{1} {2}".format_with(argument,Environment.NewLine,ex.Message));
"chocolatey".Log().Warn("Parsing {0} resulted in exception:{1} {2}".format_with(argument, Environment.NewLine, ex.Message));
}

return false;
Expand Down

0 comments on commit 1140679

Please sign in to comment.