remove potential recursive error

(cherry picked from commit 6b9234ebd4)
This commit is contained in:
Livio Spring 2024-04-26 15:58:16 +02:00
parent 75db44a163
commit bc80c58725
No known key found for this signature in database
GPG Key ID: 26BB1C2FA5952CF0

View File

@ -67,7 +67,6 @@ func setInstance(ctx context.Context, req interface{}, info *grpc.UnaryServerInf
zErr := new(zerrors.ZitadelError)
if errors.As(err, &zErr) {
zErr.SetMessage(translator.LocalizeFromCtx(ctx, zErr.GetMessage(), nil))
zErr.Parent = err
return nil, status.Error(codes.NotFound, fmt.Sprintf("unable to set instance using origin %s (ExternalDomain is %s): %s", origin, externalDomain, zErr))
}
return nil, status.Error(codes.NotFound, fmt.Sprintf("unable to set instance using origin %s (ExternalDomain is %s)", origin, externalDomain))