Skip to content

Commit

Permalink
(GH-584) Warn on Missing/Outdated Licensed DLL
Browse files Browse the repository at this point in the history
If unable to load registration components or set licensed configuration,
the errors should be important warnings instead of errors.
  • Loading branch information
ferventcoder committed Feb 12, 2016
1 parent 6871d6e commit ae70ddf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -415,9 +415,9 @@ private static void set_licensed_options(ChocolateyConfiguration config, Chocola

if (licensedConfigBuilder == null)
{
"chocolatey".Log().Error(
@"Type expected for registering components was null. Unable to provide
name due to it being null.");
"chocolatey".Log().Warn(ChocolateyLoggers.Important,
@"Unable to set licensed configuration. This is likely related to a
missing or outdated licensed DLL.");
return;
}
try
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ private static void load_component_registry(Type componentRegistry, Container co
{
if (componentRegistry == null)
{
"chocolatey".Log().Error(
@"Type expected for registering components was null. Unable to provide
name due to it being null.");
"chocolatey".Log().Warn(ChocolateyLoggers.Important,
@"Unable to register licensed components. This is likely related to a
missing or outdated licensed DLL.");
return;
}
try
Expand Down

0 comments on commit ae70ddf

Please sign in to comment.