diff --git a/Il2CppInspector.CLI/Program.cs b/Il2CppInspector.CLI/Program.cs index b4d8134..115907b 100644 --- a/Il2CppInspector.CLI/Program.cs +++ b/Il2CppInspector.CLI/Program.cs @@ -196,7 +196,13 @@ namespace Il2CppInspector.CLI 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; + } } }