Skip to content
Snippets Groups Projects
Commit 3958362a authored by Carsten Patzke's avatar Carsten Patzke
Browse files

Fixed nullptr issue at error to stream function

parent 61111406
No related branches found
No related tags found
No related merge requests found
......@@ -82,7 +82,13 @@ static inline bool operator != (const Error& lhs, const ErrorTemplateInterface&
}
static inline std::ostream& operator<<(std::ostream& os, const Error& err) {
os << err->Explain();
if(err) {
os << err->Explain();
}
else {
static std::string no_error = "No error";
os << no_error;
}
return os;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment