minor: Suggest using with_field instead of override.

This commit is contained in:
Steve Howell 2021-02-12 14:41:15 +00:00 committed by Steve Howell
parent 559cdf7317
commit 21cb0d1547

View File

@ -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);