Skip to content

Commit

Permalink
(maint) Skip log PowerShell resource assembly failures
Browse files Browse the repository at this point in the history
  • Loading branch information
ferventcoder committed Jul 24, 2016
1 parent 5664ef3 commit 16ec90a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,6 @@ public void prepare_powershell_environment(IPackage package, ChocolateyConfigura
Environment.SetEnvironmentVariable("CacheChecksumType_{0}".format_with(urlKey), "sha512");
}
}

}

private ResolveEventHandler _handler = null;
Expand Down Expand Up @@ -480,7 +479,10 @@ private System.Reflection.Assembly attempt_version_load(AssemblyName requestedAs
}
catch (Exception ex)
{
if (requestedAssembly.Name.EndsWith(".resources", StringComparison.OrdinalIgnoreCase)) return null;

this.Log().Debug(ChocolateyLoggers.Verbose, "Attempting to load assembly {0} failed:{1} {2}".format_with(requestedAssembly.Name, Environment.NewLine, ex.Message.escape_curly_braces()));

return null;
}
}
Expand Down

0 comments on commit 16ec90a

Please sign in to comment.