You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exports.clone=function(obj){//// We only need to clone reference types (Object)//if(objinstanceofError){returnobj;}
If an error is passed as meta, the error message is unexpectedly mutated by the log call:
varerror=newError('this is the real error');console.log(error.message);// -> this is the real errorlogger.error('Func.name error',error);console.log(error.message);// -> Func.name error
If you can let me know how you want that resolved, I'm happy to do the PR and tests.
The text was updated successfully, but these errors were encountered:
In
common.js
there is the following code:But in
exports.clone
of the same file, you have:If an error is passed as
meta
, the error message is unexpectedly mutated by the log call:If you can let me know how you want that resolved, I'm happy to do the PR and tests.
The text was updated successfully, but these errors were encountered: