Improved error message in case of parameter count mismatch in JSONRPC APIs
Some checks are pending
TOC Generator / TOC Generator (push) Waiting to run

This commit is contained in:
Daniele Teti 2024-10-10 09:18:15 +02:00
parent febe311d01
commit 47a5d91b23

View File

@ -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