From f39488c87197a17f312321f3e3bb02411e0d9c7f Mon Sep 17 00:00:00 2001 From: Carl Philipp Klemm <philipp@uvos.xyz> Date: Tue, 30 May 2023 15:06:11 +0200 Subject: [PATCH] also catch and redirect logic_errors --- drt.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drt.cpp b/drt.cpp index 8752761..46f6c46 100644 --- a/drt.cpp +++ b/drt.cpp @@ -201,6 +201,10 @@ Eigen::VectorX<fv> calcDrt(Eigen::VectorX<std::complex<fv>>& impedanceSpectra, E { throw drt_errror(std::string(ex.what())); } + catch(const std::logic_error& ex) + { + throw drt_errror(std::string(ex.what())); + } if(rSeries) *rSeries = x[x.size()-1]; -- GitLab