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:
Alexander Bantyev 2021-12-28 15:53:21 +03:00
parent 0e90b13ab1
commit 581f774284
No known key found for this signature in database
GPG key ID: E081FF12ADCB4AD5

View file

@ -25,7 +25,7 @@ const string & BaseError::calcWhat() const
err.name = sname();
std::ostringstream oss;
showErrorInfo(oss, err, false);
showErrorInfo(oss, err, loggerSettings.showTrace);
what_ = oss.str();
return *what_;