mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 11:42:36 +00:00
Core - Improve JavascriptObjectRepository.TryCallMethod Object Not Found error message
- Add method name and param count Resolves #4209
This commit is contained in:
@@ -293,7 +293,9 @@ namespace CefSharp.Internals
|
||||
|
||||
if (!objects.TryGetValue(objectId, out obj))
|
||||
{
|
||||
return new TryCallMethodResult(false, result, "Object Not Found Matching Id:" + objectId);
|
||||
var paramCount = parameters == null ? 0 : parameters.Length;
|
||||
|
||||
return new TryCallMethodResult(false, result, $"Object Not Found Matching Id:{objectId}, MethodName:{name}, ParamCount:{paramCount}");
|
||||
}
|
||||
|
||||
var method = obj.Methods.FirstOrDefault(p => p.JavascriptName == name);
|
||||
|
||||
Reference in New Issue
Block a user