Checking update does not depend on old binary removal error

This commit is contained in:
JustArchi
2016-04-09 22:15:04 +02:00
parent 8d1d162b02
commit 0b50a45336

View File

@@ -95,8 +95,7 @@ namespace ArchiSteamFarm {
File.Delete(oldExeFile);
} catch (Exception e) {
Logging.LogGenericException(e);
Logging.LogGenericError("Could not remove old ASF file, please remove " + oldExeFile + " manually in order for update function to work");
return;
Logging.LogGenericError("Could not remove old ASF binary, please remove " + oldExeFile + " manually in order for update function to work!");
}
}
@@ -174,6 +173,11 @@ namespace ArchiSteamFarm {
return;
}
if (File.Exists(oldExeFile)) {
Logging.LogGenericWarning("Refusing to proceed with auto update as old " + oldExeFile + " binary could not be removed, please remove it manually");
return;
}
// Auto update logic starts here
if (releaseResponse.Assets == null) {
Logging.LogGenericWarning("Could not proceed with update because that version doesn't include assets!");