Skip to content

Commit 4770209

Browse files
authored
Improve minimize processing (#77)
***UPDATE_DEPENDENTS***
1 parent 01e9798 commit 4770209

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

source/MetadataProcessor.Core/nanoAssemblyBuilder.cs

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,30 @@ public void Minimize()
128128
System.Console.WriteLine($"Including {typeDescription}");
129129
}
130130

131-
HashSet<MetadataToken> setTmp = BuildDependencyList(t);
131+
HashSet<MetadataToken> setTmp;
132+
133+
try
134+
{
135+
setTmp = BuildDependencyList(t);
136+
}
137+
catch(Exception)
138+
{
139+
Console.WriteLine($"Exception processing token {t.ToInt32().ToString("x8")} {TokenToString(t)}");
140+
throw;
141+
}
132142

133143
// show dependencies
134144
if (_verbose)
135145
{
136-
ShowDependencies(t, set, setTmp);
146+
try
147+
{
148+
ShowDependencies(t, set, setTmp);
149+
}
150+
catch (Exception)
151+
{
152+
Console.WriteLine($"Exception listing dependencies of token {t.ToInt32().ToString("x8")} {TokenToString(t)}");
153+
throw;
154+
}
137155
}
138156

139157
// copy type def

0 commit comments

Comments
 (0)