Skip to content

Commit

Permalink
print a more insightful error message by default
Browse files Browse the repository at this point in the history
Signed-off-by: Bob Callaway <bcallaway@google.com>
  • Loading branch information
bobcallaway authored and cpanato committed Dec 6, 2023
1 parent d6a2f27 commit fac7a8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ const (
)

func handleFulcioGRPCError(ctx context.Context, code codes.Code, err error, message string, fields ...interface{}) error {
log.ContextLogger(ctx).Errorw("returning with error", append([]interface{}{"code", code, "clientMessage", message, "error", err}, fields...)...)
log.ContextLogger(ctx).Errorw(err.Error(), append([]interface{}{"code", code, "clientMessage", message, "error", err}, fields...)...)
return status.Error(code, message)
}

0 comments on commit fac7a8c

Please sign in to comment.