stricter err msg

This commit is contained in:
Mikhail Katychev 2020-09-29 18:31:22 -05:00
parent 064101bc06
commit 714f77ecb9
No known key found for this signature in database
GPG Key ID: 9E8549CD2CEB5E59
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ func InvokeRPC(ctx context.Context, source DescriptorSource, ch grpcdynamic.Chan
}
// return the error unstringified if it is a gRPC status error
if statusErr, ok := status.FromError(err); ok {
return status.Errorf(statusErr.Code(), "failed to query for service descriptor %q: %v", svc, err)
return status.Errorf(statusErr.Code(), "failed to query for service descriptor %q: %s", svc, statusErr.Message())
}
return fmt.Errorf("failed to query for service descriptor %q: %v", svc, err)
}