mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
refactor(apiv2): rename APIErrors to Errors, move IsUserError to helper method
This commit is contained in:
parent
431f7e8931
commit
fd49e7e4ea
9 changed files with 98 additions and 84 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue