Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Prowlarr/src/commit/de607e207b8c9baed0ba9769d6b87ce8a39bfded/NzbDrone.Api/ErrorManagement/ApiException.cs You should set ROOT_URL correctly, otherwise the web may not work correctly.
Prowlarr/NzbDrone.Api/ErrorManagement/ApiException.cs

38 lines
964 B

using System;
using Nancy;
using Nancy.Responses;
using NzbDrone.Api.Extensions;
namespace NzbDrone.Api.ErrorManagement
{
public abstract class ApiException : Exception
{
public object Content { get; private set; }
public HttpStatusCode StatusCode { get; private set; }
protected ApiException(HttpStatusCode statusCode, object content = null)
: base(GetMessage(statusCode, content))
{
StatusCode = statusCode;
Content = content;
}
public JsonResponse<ErrorModel> ToErrorResponse()
{
return new ErrorModel(this).AsResponse(StatusCode);
}
private static string GetMessage(HttpStatusCode statusCode, object content)
{
var result = statusCode.ToString();
if (content != null)
{
result = result + " :" + content;
}
return result;
}
}
}