Only show the checksum mismatch when the manifest actually exists

This commit is contained in:
Ryan Kistner committed 2019-11-03 19:10:15 -07:00
1 parent 2e30364d8f
commit bc25bba261
1 file changed
+1 -1
+1 -1
View File
@@ -632,7 +632,7 @@ namespace DepotDownloader
newProtoManifest = ProtoManifest.LoadFromFile(newManifestFileName, out currentChecksum);
if (expectedChecksum == null || !expectedChecksum.SequenceEqual(currentChecksum))
if (newProtoManifest != null && (expectedChecksum == null || !expectedChecksum.SequenceEqual(currentChecksum)))
{
Console.WriteLine("Manifest {0} on disk did not match the expected checksum.", depot.manifestId);
newProtoManifest = null;