Skip to content

Commit a864dcc

Browse files
SND\yck1509_cpSND\yck1509_cp
authored andcommitted
throw exception when cannot resolve references
git-svn-id: https://confuser.svn.codeplex.com/svn@78962 a83551a4-30f6-4d81-a974-c6ced450ddbf
1 parent 2c8e1e6 commit a864dcc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Confuser.Core/Confuser.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ public override AssemblyDefinition Resolve(AssemblyNameReference name)
184184
assembly = base.Resolve(name);
185185
if (assembly != null)
186186
AssemblyCache[name.GetVersionName()] = assembly;
187+
else
188+
throw new Exception("Cannot resolve '" + name.FullName + "'!");
187189

188190
return assembly;
189191
}

0 commit comments

Comments
 (0)