summaryrefslogtreecommitdiff
path: root/runtime/js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js')
-rw-r--r--runtime/js/40_testing.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/runtime/js/40_testing.js b/runtime/js/40_testing.js
index b15b28c9e..0a40e19f1 100644
--- a/runtime/js/40_testing.js
+++ b/runtime/js/40_testing.js
@@ -208,9 +208,16 @@
}
}
- throw `Test case is leaking async ops.
+ let msg = `Test case is leaking async ops.
- ${ArrayPrototypeJoin(details, "\n - ")}`;
+
+ if (!core.isOpCallTracingEnabled()) {
+ msg +=
+ `\n\nTo get more details where ops were leaked, run again with --trace-ops flag.`;
+ }
+
+ throw msg;
};
}