Skip to content

Commit 072ab09

Browse files
committed
Fix #120
1 parent fd2772d commit 072ab09

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

core/parser.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,8 @@ namespace {
187187
for (const auto &p_ast_fodder : exprs) {
188188
auto *p = dynamic_cast<Var*>(p_ast_fodder.first);
189189
if (p == nullptr) {
190-
std::stringstream ss;
191-
ss << "Not an identifier: " << p_ast_fodder.first;
192-
throw StaticError(p_ast_fodder.first->location, ss.str());
190+
throw StaticError(p_ast_fodder.first->location,
191+
"Expected an identifier but got a complex expression.");
193192
}
194193
ret.emplace_back(p->openFodder, p->id, p_ast_fodder.second);
195194
}

0 commit comments

Comments
 (0)