Skip to content

Commit 1779578

Browse files
Handle errors raised without a stacktrace while zipping
1 parent a33eec2 commit 1779578

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/helpers/packageInstaller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const packageWrapper = (bsConfig, packageDir, packageFile, md5data, instrumentBl
125125
Object.assign(obj, { packageArchieveCreated: true });
126126
return resolve(obj);
127127
}).catch((err) => {
128-
obj.error = err.stack.substring(0,100);
128+
obj.error = err.stack ? err.stack.toString().substring(0,100) : err.toString().substring(0,100);
129129
return resolve(obj);
130130
})
131131
})

0 commit comments

Comments
 (0)