Plugins: Include inner exception on plugin load error

This commit is contained in:
Katy Coe
2020-12-23 22:29:21 +01:00
parent 380e87bc0c
commit b31db0dac6

View File

@@ -215,7 +215,7 @@ namespace Il2CppInspector
catch (Exception ex) {
var name = Path.GetFileName(dll);
throw new InvalidOperationException($"Fatal error loading plugin {name}: {ex.GetType()} - {ex.Message}");
throw new InvalidOperationException($"Fatal error loading plugin {name}: {ex.GetType()} - {ex.Message}", ex);
}
}
}