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

Logging TypeError as {} #85

Open
jc423 opened this issue Mar 3, 2020 · 0 comments
Open

Logging TypeError as {} #85

jc423 opened this issue Mar 3, 2020 · 0 comments
Assignees

Comments

@jc423
Copy link

jc423 commented Mar 3, 2020

The logger seems to have no problem outputting new Error but is unable to correctly output new TypeError

let typeError = new TypeError('test type error’);
let error = new Error('non type error’);
this.logger.error(typeError);
=>outputs {}
this.logger.error(typeError.message);
=> outputs ’test type error'
this.logger.error(error);
=> outputs Error: non type error\n at DefaultExecuteASTPipeline.process (/srv/package/dist/ast-pipelines/base-ast- pipeline.js:46:29)\n at \n at process._tickDomainCallback (internal/process/next_tick.js:229:7)

@eaviles eaviles self-assigned this Mar 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants