mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2024-11-10 06:31:49 +00:00
Catch any file I/O exceptions reported whilst cleaning up the updater directory in UpdateInstaller::cleanup()
This commit is contained in:
parent
7893fe500a
commit
66dc8d4720
1 changed files with 8 additions and 1 deletions
|
@ -143,8 +143,15 @@ void UpdateInstaller::run() throw ()
|
|||
LOG(Info,"Cleaning up temporary updater files");
|
||||
|
||||
ProcessUtils::waitForProcess(m_waitPid);
|
||||
cleanup();
|
||||
|
||||
try
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
catch (const FileOps::IOException& ex)
|
||||
{
|
||||
LOG(Error,"Error cleaning up updater " + std::string(ex.what()));
|
||||
}
|
||||
LOG(Info,"Updater files removed");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue