Throw error when game archive cannot be extracted
parent
537ad49a5a
commit
0def49d9dc
|
@ -148,10 +148,12 @@ namespace LANCommander.PlaynitePlugin
|
||||||
|
|
||||||
if (Directory.Exists(destination))
|
if (Directory.Exists(destination))
|
||||||
{
|
{
|
||||||
Logger.Trace("Directory at install path already exists. Deleting...");
|
Logger.Trace("Cleaning up orphaned install files after bad install...");
|
||||||
|
|
||||||
Directory.Delete(destination, true);
|
Directory.Delete(destination, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
throw new Exception("The game archive could not be extracted. Please try again or fix the archive!");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
new GlobalProgressOptions($"Downloading {game.Title}...")
|
new GlobalProgressOptions($"Downloading {game.Title}...")
|
||||||
|
|
Loading…
Reference in New Issue