mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2024-11-26 13:51:11 +00:00
Print details of any exceptions that escape UpdateInstaller::run()
This commit is contained in:
parent
d7ecf3722a
commit
2b772611ff
1 changed files with 9 additions and 2 deletions
11
src/main.cpp
11
src/main.cpp
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue