Skip to content

Commit 96d36af

Browse files
marduonezimmerle
authored andcommitted
Add Missing throw in Operator::instantiate
1 parent 6ab464a commit 96d36af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/operators/operator.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ Operator *Operator::instantiate(std::string op, std::string param_str) {
193193
return new UnconditionalMatch();
194194
}
195195

196-
std::invalid_argument("Operator not found.");
196+
throw std::invalid_argument("Operator not found.");
197197
}
198198

199199
} // namespace operators

0 commit comments

Comments
 (0)