Commit 7f9e5d16 authored by Samuel Debionne's avatar Samuel Debionne
Browse files

Print an error message to the console when creating an exception that does not have a DebProxy

parent 20a3308f
...@@ -82,6 +82,9 @@ Exception::Exception(Layer layer, ErrorType err_type, const string& err_desc, ...@@ -82,6 +82,9 @@ Exception::Exception(Layer layer, ErrorType err_type, const string& err_desc,
if (deb_proxy) if (deb_proxy)
*deb_proxy << "Exception(" << getErrType() << "): " *deb_proxy << "Exception(" << getErrType() << "): "
<< getErrDesc(); << getErrDesc();
else
std::cerr << "********* Exception(" << getErrType() << "): "
<< getErrDesc();
} }
Layer Exception::getLayer() const Layer Exception::getLayer() const
...@@ -146,4 +149,3 @@ ostream& lima::operator <<(ostream& os, const Exception& e) ...@@ -146,4 +149,3 @@ ostream& lima::operator <<(ostream& os, const Exception& e)
{ {
return os << e.getErrMsg(); return os << e.getErrMsg();
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment