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

Describe invalid URL in the error #14

Closed
gajus opened this issue Apr 24, 2019 · 0 comments · Fixed by #41
Closed

Describe invalid URL in the error #14

gajus opened this issue Apr 24, 2019 · 0 comments · Fixed by #41

Comments

@gajus
Copy link

gajus commented Apr 24, 2019

throw new Error("Invalid url.")

On its own the error is pretty useless.

It would be handy to have the input URL, e.g.

const error = new Error("Invalid url.");
error.subjectUrl = 'http://...';
throw error;
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 a pull request may close this issue.

1 participant