Print details of any exceptions that escape UpdateInstaller::run()

This commit is contained in:
Robert Knight 2011-08-22 18:02:51 +01:00
parent d7ecf3722a
commit 2b772611ff

View file

@ -20,8 +20,15 @@ void setupUi(UpdateInstaller* installer);
void runUpdaterThread(void* arg)
{
UpdateInstaller* installer = static_cast<UpdateInstaller*>(arg);
installer->run();
try
{
UpdateInstaller* installer = static_cast<UpdateInstaller*>(arg);
installer->run();
}
catch (const std::exception& ex)
{
LOG(Error,"Unexpected exception " + std::string(ex.what()));
}
}
int main(int argc, char** argv)