BaseError::calcWhat: take loggerSettings.showTrace into account
Text representation for errors should include the trace if --show-trace is passed.
This commit is contained in:
parent
0e90b13ab1
commit
581f774284
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ const string & BaseError::calcWhat() const
|
||||||
err.name = sname();
|
err.name = sname();
|
||||||
|
|
||||||
std::ostringstream oss;
|
std::ostringstream oss;
|
||||||
showErrorInfo(oss, err, false);
|
showErrorInfo(oss, err, loggerSettings.showTrace);
|
||||||
what_ = oss.str();
|
what_ = oss.str();
|
||||||
|
|
||||||
return *what_;
|
return *what_;
|
||||||
|
|
Loading…
Reference in a new issue