summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-08-18 15:31:43 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-08-18 15:31:43 +0200
commit948a20a914b960c408534acba042d645a2639fd9 (patch)
tree55a69f9a42b0bd637d65640fd8a43302217e4e87 /src
parenta017dcb2369eb552157bdb0ec848e070db10fe73 (diff)
downloaddabmod-948a20a914b960c408534acba042d645a2639fd9.tar.gz
dabmod-948a20a914b960c408534acba042d645a2639fd9.tar.bz2
dabmod-948a20a914b960c408534acba042d645a2639fd9.zip
Improve memlesspoly error message
Diffstat (limited to 'src')
-rw-r--r--src/MemlessPoly.cpp2
1 files changed, 1 insertions, 1 deletions
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);