@bunt/util
Advanced tools
Comparing version 0.19.16 to 0.19.18
@@ -121,9 +121,11 @@ "use strict"; | ||
if ((0, is_1.isInstanceOf)(arg, Error)) { | ||
log.args.push(arg.stack); | ||
const error = { message: arg.message, stack: arg.stack }; | ||
if ((0, functions_1.isLogable)(arg)) { | ||
const logValue = arg.getLogValue(); | ||
if ((0, is_1.isDefined)(logValue)) { | ||
log.args.push(arg.getLogValue()); | ||
error.extra = arg.getLogValue(); | ||
} | ||
} | ||
const { constructor: { name } } = arg; | ||
log.args.push({ error: { name, ...error } }); | ||
continue; | ||
@@ -130,0 +132,0 @@ } |
{ | ||
"name": "@bunt/util", | ||
"version": "0.19.16", | ||
"version": "0.19.18", | ||
"keywords": [ | ||
@@ -29,3 +29,3 @@ "typescript" | ||
"license": "MIT", | ||
"gitHead": "4d9fc4fc6414228f9cfb275f9cead9a53bca76c0" | ||
"gitHead": "b78d497b7eab6293142183ad74b7478224e8225c" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
120831
1849