mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
adding better error message for ResolveMethod (#1950)
This commit is contained in:
parent
e736f41470
commit
e6311ecb37
@ -17,7 +17,12 @@ public static MethodReference ResolveMethod(TypeReference tr, AssemblyDefinition
|
||||
Weaver.Error($"Cannot resolve method {name} without a class");
|
||||
return null;
|
||||
}
|
||||
return ResolveMethod(tr, scriptDef, method => method.Name == name);
|
||||
MethodReference method = ResolveMethod(tr, scriptDef, m => m.Name == name);
|
||||
if (method == null)
|
||||
{
|
||||
Weaver.Error($"Method not found with name {name} in type {tr.Name}", tr);
|
||||
}
|
||||
return method;
|
||||
}
|
||||
|
||||
public static MethodReference ResolveMethod(TypeReference t, AssemblyDefinition scriptDef, System.Func<MethodDefinition, bool> predicate)
|
||||
|
Loading…
Reference in New Issue
Block a user