Skip to content

Commit 47a5d91

Browse files
committed
Improved error message in case of parameter count mismatch in JSONRPC APIs
1 parent febe311 commit 47a5d91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/MVCFramework.JSONRPC.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1840,7 +1840,7 @@ function TMVCJSONRPCController.InvokeMethod(const fRPCInstance: TObject;
18401840

18411841
if Assigned(lJSONNamedParams) and (lParamsCountMinusInjectedOnes <> lJSONNamedParams.Count) then
18421842
raise EMVCJSONRPCInvalidParams.CreateFmt('Wrong parameters count. Expected [%d] got [%d].',
1843-
[lParamsCount, lJSONNamedParams.Count]);
1843+
[lParamsCountMinusInjectedOnes, lJSONNamedParams.Count]);
18441844
end
18451845
else
18461846
begin

0 commit comments

Comments
 (0)