Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

minor: Suggest using with_field instead of override.

Steve Howell21cb0d1547c2
diff --git a/frontend_tests/zjsunit/namespace.js b/frontend_tests/zjsunit/namespace.js
index 4b86c60cc20..1493ecc50ff 100644
--- a/frontend_tests/zjsunit/namespace.js
+++ b/frontend_tests/zjsunit/namespace.js
@@ -112,7 +112,9 @@ exports.with_overrides = function (test_function) {
// it's super easy to reason about our logic to restore
// the original function. Usually if somebody sees this
// error, it's a symptom of not breaking up tests enough.
- throw new Error("You can only override a function one time.");
+ throw new Error(
+ "You can only override a function one time. Use with_field for more granular control.",
+ );
}
funcs.get(module).set(func_name, true);