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

Inherit _isLogged property if terror instance is passed to createError #30

Open
narqo opened this issue Oct 2, 2015 · 0 comments
Open
Labels

Comments

@narqo
Copy link

narqo commented Oct 2, 2015

var err1 = Terror.createError('MY_INNER_ERROR', new Error('my error'));
err1.log();

var err2 = Terror.createError('MY_ERROR', err1);
err2.log();

I'm not sure, but currently there is no public API to prevent err2 from being logged as err1 had been logged previously.

@narqo narqo added the question label Oct 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant