From 95700d96415735f6953d3dc879376c98cd797af3 Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Fri, 30 Mar 2012 01:13:42 +0000 Subject: [PATCH] Added save() to constructors of CanteraError() so that the error will register within the application class. --- src/base/ctexceptions.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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()