Skip to content

Commit

Permalink
Add Missing throw in Operator::instantiate
Browse files Browse the repository at this point in the history
  • Loading branch information
marduone authored and vladbukin committed Apr 12, 2022
1 parent 91940fd commit 94ce338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operators/operator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ Operator *Operator::instantiate(std::string op, std::string param_str) {
return new UnconditionalMatch();
}

std::invalid_argument("Operator not found.");
throw std::invalid_argument("Operator not found.");
}

} // namespace operators
Expand Down

0 comments on commit 94ce338

Please sign in to comment.