fix(error-messages): fix incorrect number of arguments message [fixes LNG-108] (#645)

This commit is contained in:
shamsartem 2023-01-18 18:06:31 +01:00 committed by GitHub
parent 6570b82a8a
commit d0a9db5164
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ class CallPreparer(
): ValidatedNec[String, Unit] = {
if (funcDomain.size != args.length) {
invalidNec(
s"Number of arguments for the function is incorrect. Expected: ${args.length}. Actual: ${funcDomain.size}"
s"Number of arguments for the function is incorrect. Expected: ${funcDomain.size}. Actual: ${args.length}"
)
} else {
funcDomain

View File

@ -35,7 +35,7 @@ class RunPreparer(
): ValidatedNec[String, Unit] = {
if (funcDomain.size != args.length) {
invalidNec(
s"Number of arguments for the function is incorrect. Expected: ${args.length}. Actual: ${funcDomain.size}"
s"Number of arguments for the function is incorrect. Expected: ${funcDomain.size}. Actual: ${args.length}"
)
} else {
funcDomain