CLI: Handle metadata+binary exceptions the same way as package exceptions

This commit is contained in:
Katy Coe
2020-11-25 12:17:50 +01:00
parent c07c13be24
commit 36748a2632

View File

@@ -196,8 +196,14 @@ namespace Il2CppInspector.CLI
return 1; return 1;
} }
try {
il2cppInspectors = Il2CppInspector.LoadFromFile(options.BinaryFiles.First(), options.MetadataFile); il2cppInspectors = Il2CppInspector.LoadFromFile(options.BinaryFiles.First(), options.MetadataFile);
} }
catch (Exception ex) {
Console.Error.WriteLine(ex.Message);
return 1;
}
}
} }
if (il2cppInspectors == null) if (il2cppInspectors == null)