aggregate-error
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -32,3 +32,3 @@ import indentString from 'indent-string'; | ||
// The `stack` property is not standardized, so we can't assume it exists | ||
return typeof error.stack === 'string' ? cleanInternalStack(cleanStack(error.stack)) : String(error); | ||
return typeof error.stack === 'string' && error.stack.length > 0 ? cleanInternalStack(cleanStack(error.stack)) : String(error); | ||
}) | ||
@@ -35,0 +35,0 @@ .join('\n'); |
{ | ||
"name": "aggregate-error", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Create an error from multiple errors", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
6463