From d3168f9a2c3cb17767e7ab2b2b1f29886fd1da1d Mon Sep 17 00:00:00 2001 From: Jordan Dominion Date: Wed, 11 Sep 2024 23:12:00 -0400 Subject: [PATCH] NotFound/Gone don't throw for GraphQL AuthorityInvokers --- .../Authority/Core/AuthorityInvoker{TAuthority}.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Tgstation.Server.Host/Authority/Core/AuthorityInvoker{TAuthority}.cs b/src/Tgstation.Server.Host/Authority/Core/AuthorityInvoker{TAuthority}.cs index 3b6eb396b9..cf04a0068f 100644 --- a/src/Tgstation.Server.Host/Authority/Core/AuthorityInvoker{TAuthority}.cs +++ b/src/Tgstation.Server.Host/Authority/Core/AuthorityInvoker{TAuthority}.cs @@ -26,7 +26,9 @@ namespace Tgstation.Server.Host.Authority.Core /// The potentially errored . 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()!;