Skip to content

Fix lifetime.Err format verb in simpleGRPCServer.Describe#228

Merged
hehaifengcn merged 1 commit into
mainfrom
haifengh/err-format
May 12, 2026
Merged

Fix lifetime.Err format verb in simpleGRPCServer.Describe#228
hehaifengcn merged 1 commit into
mainfrom
haifengh/err-format

Conversation

@hehaifengcn
Copy link
Copy Markdown
Collaborator

Use %v instead of %e for the error value. %e is Go's
floating-point scientific-notation verb, which produced the
placeholder "%!e()" in log output whenever the lifetime
context had not been cancelled. %v is the default verb for any
value and is nil-safe for errors: it prints the result of
err.Error() when non-nil and "" otherwise.

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

What was changed

Why?

Checklist

  1. Closes

  2. How was this tested:

  1. Any docs updates needed?

Use %v instead of %e for the error value. %e is Go's
floating-point scientific-notation verb, which produced the
placeholder "%!e(<nil>)" in log output whenever the lifetime
context had not been cancelled. %v is the default verb for any
value and is nil-safe for errors: it prints the result of
err.Error() when non-nil and "<nil>" otherwise.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@hehaifengcn hehaifengcn requested a review from a team as a code owner May 12, 2026 16:34
@hehaifengcn hehaifengcn requested a review from temporal-nick May 12, 2026 16:34
@hehaifengcn hehaifengcn merged commit f9acbf4 into main May 12, 2026
5 checks passed
@hehaifengcn hehaifengcn deleted the haifengh/err-format branch May 12, 2026 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants