mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-22 20:47:28 +01:00
NotFound/Gone don't throw for GraphQL AuthorityInvokers
This commit is contained in:
@@ -26,7 +26,9 @@ namespace Tgstation.Server.Host.Authority.Core
|
||||
/// <param name="authorityResponse">The potentially errored <paramref name="authorityResponse"/>.</param>
|
||||
static void ThrowGraphQLErrorIfNecessary(AuthorityResponse authorityResponse)
|
||||
{
|
||||
if (authorityResponse.Success)
|
||||
if (authorityResponse.Success
|
||||
|| authorityResponse.FailureResponse.Value == HttpFailureResponse.NotFound
|
||||
|| authorityResponse.FailureResponse.Value == HttpFailureResponse.Gone)
|
||||
return;
|
||||
|
||||
var fallbackString = authorityResponse.FailureResponse.ToString()!;
|
||||
|
||||
Reference in New Issue
Block a user