Skip to content

Conversation

@vadimdemedes
Copy link
Contributor

This PR fixes #368.

Now we use AvaError for internal errors, that don't need a stack trace.

@sindresorhus
Copy link
Member

LGTM

1 similar comment
@jamestalmage
Copy link
Contributor

LGTM

@sindresorhus
Copy link
Member

LGTM

jamestalmage added a commit that referenced this pull request Dec 27, 2015
@jamestalmage jamestalmage merged commit 7e13552 into master Dec 27, 2015
@jamestalmage jamestalmage deleted the internal-error branch December 27, 2015 04:06
@ariporad
Copy link
Contributor

Hey, @jamestalmage, @sindresorhus: just a thought, should AvaErrors have .stack = null?

@sindresorhus
Copy link
Member

No, the stack could still be useful. We rather check the type when outputting the 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 this pull request may close these issues.

Create error class for internal errors

5 participants