Improved handling of exceptions and logging

This commit is contained in:
Bill Somerville
2021-01-27 18:02:01 +00:00
parent 2d6f17241a
commit 3967660297
2 changed files with 3 additions and 8 deletions
+1 -6
View File
@@ -57,7 +57,7 @@ namespace
void operator () (std::logic_error const& e) const
{
std::cout << "std::logic_error: " << e.what () << std::endl;
//throw;
throw;
}
};
@@ -103,11 +103,6 @@ namespace
<< boost::log::add_value ("Function", function)
<< context.category << ": " << msg.toStdWString ();
}
if (QtFatalMsg == type)
{
// bail out
throw std::runtime_error {"Fatal Qt Error"};
}
}
}