Skip to content

Fix panic when trying to print a nil Stringer#284

Merged
sywhang merged 1 commit into
uber-go:mainfrom
sywhang:283
Oct 3, 2025
Merged

Fix panic when trying to print a nil Stringer#284
sywhang merged 1 commit into
uber-go:mainfrom
sywhang:283

Conversation

@sywhang

@sywhang sywhang commented Oct 3, 2025

Copy link
Copy Markdown
Contributor

This fixes an issue where we're trying to print the value of a nil Stringer which causes a panic instead of failing the test, hurting the debuggability of the failure.

Fixes #283.

This fixes an issue where we're trying to print the value of a nil
Stringer which causes a panic instead of failing the test, hurting
the debuggability of the failure.

Fixes uber-go#283.
@sywhang sywhang requested review from JacobOaks and r-hang October 3, 2025 22:41
@sywhang sywhang merged commit dcbbb16 into uber-go:main Oct 3, 2025
5 checks passed
@sywhang sywhang deleted the 283 branch October 3, 2025 22:59
pableeee pushed a commit to pableeee/implgen that referenced this pull request Mar 7, 2026
This fixes an issue where we're trying to print the value of a nil
Stringer which causes a panic instead of failing the test, hurting the
debuggability of the failure.

Fixes uber-go#283.
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.

Panic when trying to print a Stringer that is nil

2 participants