-
Notifications
You must be signed in to change notification settings - Fork 571
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify ContextCallerSkipFrameCount in wrappers.
For the wrappers that end up calling .Msg(), we need to increment ContextCallerSkipFrameCount before the call to .Msg, and decrement it afterwards. That ensures that we always print the correct program caller.
- Loading branch information
Zephaniah E. Loss-Cutler-Hull
committed
May 6, 2021
1 parent
6c3e969
commit d2f7dfa
Showing
2 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters