From 21cb0d1547c2ab0e8ef97b65e2df0adb6f151ce8 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Fri, 12 Feb 2021 14:41:15 +0000 Subject: [PATCH] minor: Suggest using with_field instead of override. --- frontend_tests/zjsunit/namespace.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend_tests/zjsunit/namespace.js b/frontend_tests/zjsunit/namespace.js index 4b86c60cc2..1493ecc50f 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);