Prevent duplication of ErrorManager and TraceSettings handlers

This commit is contained in:
Yoshi Askharoun
2024-12-29 16:33:01 -06:00
parent a3526f1640
commit 570e5e98d1
3 changed files with 80 additions and 46 deletions
+2
View File
@@ -288,6 +288,8 @@ public class Disassembler
public string Write()
{
_loadResult.FullLoad();
if (_loadResult.Status == LoadResultStatus.Error)
throw new Exception($"Failed to load '{_loadResult.ErrorContextUri}'");
List<IEnumerable<IBodyItem>> segments = [
GetExports(),