aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/eval.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/eval.sh')
-rw-r--r--tests/functional/eval.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/functional/eval.sh b/tests/functional/eval.sh
index 9c125b569..ae6fcec63 100644
--- a/tests/functional/eval.sh
+++ b/tests/functional/eval.sh
@@ -25,7 +25,7 @@ nix eval -E 'assert 1 + 2 == 3; true'
# Top-level eval errors should be printed to stderr with a traceback.
topLevelThrow="$(expectStderr 1 nix eval --expr 'throw "a sample throw message"')"
[[ "$topLevelThrow" =~ "a sample throw message" ]]
-[[ "$topLevelThrow" =~ "while calling the 'throw' builtin" ]]
+[[ "$topLevelThrow" =~ "caused by explicit throw" ]]
# But errors inside something should print an elided version, and exit with 0.
outputOfNestedThrow="$(nix eval --expr '{ throws = throw "a sample throw message"; }')"