Skip to content

Commit b0da400

Browse files
committed
backup plan for poorly formatted errors
1 parent c0f348b commit b0da400

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/errors.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class SpikeError extends Error {
1616
this.id = args.id
1717
this.message = args.err.message
1818
this.stack = args.err.stack
19+
if (!this.message) this.raw = args.err
1920
}
2021
}
2122
exports.Error = SpikeError

0 commit comments

Comments
 (0)