aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr
diff options
context:
space:
mode:
authorBen Burdette <bburdette@gmail.com>2020-07-02 07:14:40 -0600
committerBen Burdette <bburdette@gmail.com>2020-07-02 07:14:40 -0600
commit5ae498872a832b0df93b551210f0a3a8b6ffaa35 (patch)
tree543c3b1e51ce914118b50f17996f3d037e357f4b /src/libexpr
parent8497891b99b37c590c82cfe787d9541a0fda31de (diff)
assert for invalid fileorigin
Diffstat (limited to 'src/libexpr')
-rw-r--r--src/libexpr/parser.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/parser.y b/src/libexpr/parser.y
index 472b33c2f..878f06c96 100644
--- a/src/libexpr/parser.y
+++ b/src/libexpr/parser.y
@@ -584,7 +584,7 @@ Expr * EvalState::parse(const char * text, FileOrigin origin,
data.file = data.symbols.create(text);
break;
default:
- throw Error("invalid FileOrigin in parse");
+ assert(false);
}
data.basePath = basePath;