diff options
| author | Al <gabriel.cortesi@outlook.com> | 2019-10-04 22:16:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-04 22:16:39 +0200 |
| commit | e427dbae55c77276288cdc8105604885a4b3309c (patch) | |
| tree | 48c57873e62597ee005e60690e669f32833baa25 /src/selfupdater.cpp | |
| parent | 73541c9bb45366f648ba2a9c430ca7b526a8a6a2 (diff) | |
| parent | c4dd23abb7a37531040d6348c491dc868919013c (diff) | |
Merge pull request #847 from isanae/file-renamer-errors
FileRenamer error messages
Diffstat (limited to 'src/selfupdater.cpp')
| -rw-r--r-- | src/selfupdater.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/selfupdater.cpp b/src/selfupdater.cpp index 8887927a..5a70568e 100644 --- a/src/selfupdater.cpp +++ b/src/selfupdater.cpp @@ -341,11 +341,14 @@ void SelfUpdater::downloadCancel() void SelfUpdater::installUpdate()
{
const QString parameters = "/DIR=\"" + qApp->applicationDirPath() + "\" ";
+ const auto r = shell::Execute(m_UpdateFile.fileName(), parameters);
- if (shell::Execute(m_UpdateFile.fileName(), parameters)) {
+ if (r.success()) {
QCoreApplication::quit();
} else {
- reportError(tr("Failed to start %1").arg(m_UpdateFile.fileName()));
+ reportError(tr("Failed to start %1: %2")
+ .arg(m_UpdateFile.fileName())
+ .arg(r.toString()));
}
m_UpdateFile.remove();
|
