Skip to content

Commit 081b85f

Browse files
committed
fix: added error to console reporter when result isnt defined
1 parent 8c03203 commit 081b85f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reporters/console.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class ConsoleReporter implements Reporter {
7474
console.log(
7575
colors.magenta("\t\t\t \->"),
7676
colors.white.underline("instead received: "),
77-
colors.red(JSON.stringify(ex.result))
77+
colors.red(JSON.stringify(ex.result || ex.error))
7878
);
7979

8080
if (ex.reason) {

0 commit comments

Comments
 (0)