diff --git a/Framework/Muon/src/ConvertFitFunctionForMuonTFAsymmetry.cpp b/Framework/Muon/src/ConvertFitFunctionForMuonTFAsymmetry.cpp index be129eb60f95596cd6bc5fde9194a28843f6f69b..c81a73b831780205e74a230b6eed5c596aa7d4e2 100644 --- a/Framework/Muon/src/ConvertFitFunctionForMuonTFAsymmetry.cpp +++ b/Framework/Muon/src/ConvertFitFunctionForMuonTFAsymmetry.cpp @@ -249,21 +249,21 @@ IFunction_sptr ConvertFitFunctionForMuonTFAsymmetry::extractUserFunction( // N(1+g) + exp auto TFFunc = boost::dynamic_pointer_cast<CompositeFunction>(TFFuncIn); if (TFFunc == nullptr) { - std::runtime_error("Input function is not of the correct form"); + throw std::runtime_error("Input function is not of the correct form"); } // getFunction(0) -> N(1+g) TFFunc = boost::dynamic_pointer_cast<CompositeFunction>(TFFunc->getFunction(0)); if (TFFunc == nullptr) { - std::runtime_error("Input function is not of the correct form"); + throw std::runtime_error("Input function is not of the correct form"); } // getFunction(1) -> 1+g TFFunc = boost::dynamic_pointer_cast<CompositeFunction>(TFFunc->getFunction(1)); if (TFFunc == nullptr) { - std::runtime_error("Input function is not of the correct form"); + throw std::runtime_error("Input function is not of the correct form"); } // getFunction(1) -> g return TFFunc->getFunction(1);