From 76a042d6632f28d8110c94a75f07c8e196fd3aff Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Thu, 28 May 2026 15:15:40 -0400 Subject: [PATCH] grpc: make page_token error strings RPC-name-agnostic --- .../Grpc/GalaxyRepositoryGrpcService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ZB.MOM.WW.MxGateway.Server/Grpc/GalaxyRepositoryGrpcService.cs b/src/ZB.MOM.WW.MxGateway.Server/Grpc/GalaxyRepositoryGrpcService.cs index 85a10fd..8bce0a5 100644 --- a/src/ZB.MOM.WW.MxGateway.Server/Grpc/GalaxyRepositoryGrpcService.cs +++ b/src/ZB.MOM.WW.MxGateway.Server/Grpc/GalaxyRepositoryGrpcService.cs @@ -348,21 +348,21 @@ public sealed class GalaxyRepositoryGrpcService( { throw new RpcException(new Status( StatusCode.InvalidArgument, - "DiscoverHierarchy page_token is invalid.")); + "page_token is invalid.")); } if (sequence != currentSequence) { throw new RpcException(new Status( StatusCode.InvalidArgument, - "DiscoverHierarchy page_token is stale.")); + "page_token is stale.")); } if (!string.Equals(parts[1], currentFilterSignature, StringComparison.Ordinal)) { throw new RpcException(new Status( StatusCode.InvalidArgument, - "DiscoverHierarchy page_token does not match the current filters.")); + "page_token does not match the current filters.")); } return new PageToken(sequence, parts[1], offset);