Print diagnostic info for more exception types in the default import callback

This commit is contained in:
Kamil Śliwak
2021-09-27 13:14:10 +02:00
parent 226f040e25
commit d06dc7613e
+4
View File
@@ -101,6 +101,10 @@ ReadCallback::Result FileReader::readFile(string const& _kind, string const& _so
{
return ReadCallback::Result{false, "Exception in read callback: " + boost::diagnostic_information(_exception)};
}
catch (std::exception const& _exception)
{
return ReadCallback::Result{false, "Exception in read callback: " + boost::diagnostic_information(_exception)};
}
catch (...)
{
return ReadCallback::Result{false, "Unknown exception in read callback."};