summary refs log tree commit diff
path: root/src/libexpr/eval.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libexpr/eval.cc')
-rw-r--r--src/libexpr/eval.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc
index 56a73b4940..02f5e3dc8d 100644
--- a/src/libexpr/eval.cc
+++ b/src/libexpr/eval.cc
@@ -165,7 +165,7 @@ LocalNoInlineNoReturn(void throwTypeError(const char * s, const string & s2))
 
 LocalNoInlineNoReturn(void throwAssertionError(const char * s, const string & s2))
 {
-    throw TypeError(format(s) % s2);
+    throw AssertionError(format(s) % s2);
 }
 
 LocalNoInline(void addErrorPrefix(Error & e, const char * s))