diff --git a/sources/MVCFramework.JSONRPC.pas b/sources/MVCFramework.JSONRPC.pas index 955a8086..b22f29e6 100644 --- a/sources/MVCFramework.JSONRPC.pas +++ b/sources/MVCFramework.JSONRPC.pas @@ -1840,7 +1840,7 @@ begin if Assigned(lJSONNamedParams) and (lParamsCountMinusInjectedOnes <> lJSONNamedParams.Count) then raise EMVCJSONRPCInvalidParams.CreateFmt('Wrong parameters count. Expected [%d] got [%d].', - [lParamsCount, lJSONNamedParams.Count]); + [lParamsCountMinusInjectedOnes, lJSONNamedParams.Count]); end else begin