From 94ce3387f65a74636cae207f65fdec90177cf2e0 Mon Sep 17 00:00:00 2001 From: marduone Date: Mon, 17 Jun 2019 14:56:03 -0300 Subject: [PATCH] Add Missing throw in Operator::instantiate --- src/operators/operator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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