Skip to content

Commit 02c96a8

Browse files
committed
Added error message for method search
1 parent a9b9f6c commit 02c96a8

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

XrefViewer/Core/XrefCore.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,18 @@ public static void Scan(string typeName, string methodName, bool printStrings, b
5151
{
5252
MethodInfo[] methods = type.GetMethods();
5353

54+
bool foundMethod = false;
5455
foreach (MethodInfo method in methods)
5556
{
5657
if (method.Name.Contains(methodName))
58+
{
5759
DumpMethod(method, printStrings, largeScans);
60+
foundMethod = true;
61+
}
5862
}
63+
64+
if (!foundMethod)
65+
Window.WriteLine(Color.Red, "ERROR: Method not found");
5966
}
6067
catch (Exception e)
6168
{

0 commit comments

Comments
 (0)