From 948a20a914b960c408534acba042d645a2639fd9 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 18 Aug 2017 15:31:43 +0200 Subject: Improve memlesspoly error message --- src/MemlessPoly.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MemlessPoly.cpp b/src/MemlessPoly.cpp index 515e2bd..844f795 100644 --- a/src/MemlessPoly.cpp +++ b/src/MemlessPoly.cpp @@ -90,7 +90,7 @@ void MemlessPoly::load_coefficients(const std::string &coefFile) } else if (n_coefs != NUM_COEFS) { throw std::runtime_error("MemlessPoly: invalid number of coefs: " + - std::to_string(coefs.size())); + std::to_string(n_coefs) + " expected " + std::to_string(NUM_COEFS)); } etiLog.log(debug, "MemlessPoly: Reading %d coefs...", n_coefs); -- cgit v1.2.3