diff --git a/src/operators/operator.cc b/src/operators/operator.cc index b92798f98..28ba1bbff 100644 --- a/src/operators/operator.cc +++ b/src/operators/operator.cc @@ -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