CLI: Handle attempted output to directory that is file gracefully

This commit is contained in:
Katy Coe
2020-06-20 19:34:34 +02:00
parent 44df54b639
commit ca113fb055
2 changed files with 27 additions and 5 deletions

View File

@@ -226,6 +226,9 @@ namespace Il2CppInspector.CLI
writer.WriteFilesByClassTree(csOut, options.SeparateAssemblyAttributesFiles);
break;
}
if (writer.GetAndClearLastException() is Exception ex)
Console.WriteLine("An error occurred: " + ex.Message);
}
// IDA Python script output