File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed
source/MetadataProcessor.Core Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments