Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong file in logged message when failure occurs #29

Merged
merged 2 commits into from
Aug 9, 2022

Conversation

zak905
Copy link
Contributor

@zak905 zak905 commented Aug 4, 2022

This fixes #28
However I did not find a way to completely customize the logged message because the testing package does not allow such thing, (see golang/go#37708)

The printed message shows now where the error occurs in the calling code, however expect.go:213: will still appear as a prefix to the error message, for example:

expect.go:213: http_test.go:12: Unexpected status code: 400 != 11

@h2non h2non merged commit 6a2e4d1 into h2non:master Aug 9, 2022
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.

The error is not accurately describe
2 participants