Skip to content

Commit

Permalink
feat: improve the invoke command error message
Browse files Browse the repository at this point in the history
  • Loading branch information
DemoJameson committed Sep 7, 2023
1 parent d4bf8ea commit 3487afb
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ private static object FindObjectAndInvoke(Type type, string entityId, List<strin

objType = obj.GetType();
} else {
if (memberNames.IsEmpty() && type.GetMethodInfo(lastMemberName, null) == null) {
Log($"{type.FullName}.{lastMemberName} method is not found");
return nonReturnObject;
}

obj = SetCommand.FindSpecialObject(type, entityId);
if (obj == null) {
Log($"{type.FullName}{entityId.LogId()} object is not found");
Expand Down

0 comments on commit 3487afb

Please sign in to comment.