Merge pull request #12790 from Phrohdoh/fix-12789

Throw an InvalidOperationException when a mod manifest references a bogus package
This commit is contained in:
Paul Chote
2017-02-18 23:12:59 +00:00
committed by GitHub

View File

@@ -121,7 +121,11 @@ namespace OpenRA.FileSystem
modPackages.Add(package);
}
else
{
package = OpenPackage(name);
if (package == null)
throw new InvalidOperationException("Could not open package '{0}', file not found or its format is not supported.".F(name));
}
Mount(package, explicitName);
}