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

Add testable page load error #793

Open
robinbraemer opened this issue Apr 18, 2021 · 0 comments
Open

Add testable page load error #793

robinbraemer opened this issue Apr 18, 2021 · 0 comments

Comments

@robinbraemer
Copy link

I have to check the "page load ..." error by strings.Contains(err.Error(), "page load error") which is not best practice.

Could you guys please return an exported error type that we can check errors.Is and get errors.As?

reference:

loadErr = fmt.Errorf("page load error %s", ev.ErrorText)

@robinbraemer robinbraemer changed the title Add custom page load error Add testable page load error Apr 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants