refactor(apiv2): rename APIErrors to Errors, move IsUserError to helper method
This commit is contained in:
@@ -36,7 +36,7 @@ namespace PluralKit.API
|
||||
{
|
||||
HttpContext.Items.TryGetValue("SystemId", out var systemId);
|
||||
if (systemId == null)
|
||||
throw APIErrors.GenericAuthError;
|
||||
throw Errors.GenericAuthError;
|
||||
return _repo.GetSystem((SystemId)systemId);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user