From 12ba7d46085e359991e4eaec56e69ff04423e080 Mon Sep 17 00:00:00 2001 From: Jordan Dominion Date: Thu, 12 Sep 2024 15:04:52 -0400 Subject: [PATCH] Cleanup where the RemoteGateway exception is thrown --- src/Tgstation.Server.Host/GraphQL/Types/SwarmNode.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Tgstation.Server.Host/GraphQL/Types/SwarmNode.cs b/src/Tgstation.Server.Host/GraphQL/Types/SwarmNode.cs index 8558256247..f864287f3e 100644 --- a/src/Tgstation.Server.Host/GraphQL/Types/SwarmNode.cs +++ b/src/Tgstation.Server.Host/GraphQL/Types/SwarmNode.cs @@ -4,6 +4,7 @@ using HotChocolate; using Microsoft.Extensions.Options; +using Tgstation.Server.Api.Models; using Tgstation.Server.Host.Configuration; using Tgstation.Server.Host.GraphQL.Interfaces; @@ -42,7 +43,9 @@ namespace Tgstation.Server.Host.GraphQL.Types if (local) return new LocalGateway(); - return new RemoteGateway(); + throw new ErrorMessageException(ErrorCode.RemoteGatewaysNotImplemented); + + // return new RemoteGateway(); } } }