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,7 +196,13 @@ namespace Il2CppInspector.CLI
return 1; return 1;
} }
il2cppInspectors = Il2CppInspector.LoadFromFile(options.BinaryFiles.First(), options.MetadataFile); try {
il2cppInspectors = Il2CppInspector.LoadFromFile(options.BinaryFiles.First(), options.MetadataFile);
}
catch (Exception ex) {
Console.Error.WriteLine(ex.Message);
return 1;
}
} }
} }