From c8d8736f49059075857dc184dff4e2f22fcd37f1 Mon Sep 17 00:00:00 2001 From: Todd Date: Wed, 13 Mar 2024 14:25:33 -0700 Subject: [PATCH] Do not emit 404 errors when resolving aliases (#4518) --- internal/alias/interceptor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/alias/interceptor.go b/internal/alias/interceptor.go index d06231d354..fe5beab574 100644 --- a/internal/alias/interceptor.go +++ b/internal/alias/interceptor.go @@ -98,10 +98,10 @@ nextField: return ctx, err } if a == nil { - return ctx, errors.New(ctx, errors.NotFound, op, fmt.Sprintf("resource alias not found with value %q", v)) + return ctx, errors.New(ctx, errors.NotFound, op, fmt.Sprintf("resource alias not found with value %q", v), errors.WithoutEvent()) } if a.DestinationId == "" { - return ctx, errors.New(ctx, errors.NotFound, op, fmt.Sprintf("resource not found for alias value %q", v)) + return ctx, errors.New(ctx, errors.NotFound, op, fmt.Sprintf("resource not found for alias value %q", v), errors.WithoutEvent()) } r.Set(f, protoreflect.ValueOfString(a.DestinationId)) ctx = setCtxAliasInfo(ctx, a)