diff --git a/src/base/ctexceptions.cpp b/src/base/ctexceptions.cpp index 989026ae4..f92eed963 100644 --- a/src/base/ctexceptions.cpp +++ b/src/base/ctexceptions.cpp @@ -18,12 +18,16 @@ CanteraError::CanteraError(std::string procedure, std::string msg) : msg_(msg), saved_(false) { + // Save the error in the global list of errors so that showError() can work + save(); } CanteraError::CanteraError(std::string procedure) : procedure_(procedure), saved_(false) { + // Save the error in the global list of errors so that showError() can work + save(); } void CanteraError::save()