diff --git a/src/WingetCreateCore/Common/PackageParser.cs b/src/WingetCreateCore/Common/PackageParser.cs index 04af7c64..3fa5acf8 100644 --- a/src/WingetCreateCore/Common/PackageParser.cs +++ b/src/WingetCreateCore/Common/PackageParser.cs @@ -219,15 +219,15 @@ public static void UpdateInstallerNodesAsync(List installerMe int numOfNewInstallers = installerMetadataList.Sum(x => x.NewInstallers.Count); - // We only allow updating manifests with the same package count - if (numOfNewInstallers != existingInstallers.Count) + if (parseFailedInstallerUrls.Any()) { - throw new InvalidOperationException(); + throw new ParsePackageException(parseFailedInstallerUrls); } - if (parseFailedInstallerUrls.Any()) + // We only allow updating manifests with the same package count + if (numOfNewInstallers != existingInstallers.Count) { - throw new ParsePackageException(parseFailedInstallerUrls); + throw new InvalidOperationException(); } Dictionary installerMatchDict = new Dictionary();