Skip to content

Commit 9cc826f

Browse files
committed
fix: error handling
1 parent 8d81209 commit 9cc826f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/benchmarks/mongoBench/runner.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ class Runner {
190190

191191
_errorHandler(error) {
192192
this.reporter(`Error: ${error.name} - ${error.message} - ${error.stack}`);
193-
for (let error = error.cause; error != null; error = error.cause) {
194-
this.reporter(`Caused by: ${error.name} - ${error.message} - ${error.stack}`);
193+
for (let cause = error.cause; cause != null; cause = cause.cause) {
194+
this.reporter(`Caused by: ${cause.name} - ${cause.message} - ${cause.stack}`);
195195
}
196196
throw error;
197197
}

0 commit comments

Comments
 (0)