Do not emit 404 errors when resolving aliases (#4518)

pull/4519/head
Todd 2 years ago committed by GitHub
parent 929dd5abc3
commit c8d8736f49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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)

Loading…
Cancel
Save