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
1 changed files with 9 additions and 2 deletions

View File

@ -19,10 +19,17 @@
void setupUi(UpdateInstaller* installer);
void runUpdaterThread(void* arg)
{
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)
{