Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Prowlarr/blame/commit/89f261eddfc9d5791f89c313ac19f96ebfb76971/NzbDrone.Common/EnsureThat/ExceptionFactory.cs
You should set ROOT_URL correctly, otherwise the web may not work correctly.
|
|
|
|
using System;
|
|
|
|
|
using NLog;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Common.EnsureThat
|
|
|
|
|
{
|
|
|
|
|
internal static class ExceptionFactory
|
|
|
|
|
{
|
|
|
|
|
private static readonly Logger Logger = LogManager.GetLogger("ArgumentValidator");
|
|
|
|
|
|
|
|
|
|
internal static ArgumentException CreateForParamValidation(string paramName, string message)
|
|
|
|
|
{
|
|
|
|
|
Logger.Warn(message);
|
|
|
|
|
return new ArgumentException(message, paramName);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal static ArgumentNullException CreateForParamNullValidation(string paramName, string message)
|
|
|
|
|
{
|
|
|
|
|
Logger.Warn(message);
|
|
|
|
|
return new ArgumentNullException(paramName, message);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|