fix: throw SystemNotFound in SystemGet instead of 404ing
This commit is contained in:
parent
3979cdd95a
commit
b273b49533
@ -20,7 +20,7 @@ namespace PluralKit.API
|
||||
public async Task<IActionResult> SystemGet(string systemRef)
|
||||
{
|
||||
var system = await ResolveSystem(systemRef);
|
||||
if (system == null) return NotFound();
|
||||
if (system == null) throw Errors.SystemNotFound;
|
||||
else return Ok(system.ToJson(this.ContextFor(system), v: APIVersion.V2));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user