From d0a9db51640283ab065f7a7a5b5078f1f8ac7c29 Mon Sep 17 00:00:00 2001 From: shamsartem Date: Wed, 18 Jan 2023 18:06:31 +0100 Subject: [PATCH] fix(error-messages): fix incorrect number of arguments message [fixes LNG-108] (#645) --- aqua-run/src/main/scala/aqua/run/CallPreparer.scala | 2 +- aqua-run/src/main/scala/aqua/run/RunPreparer.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aqua-run/src/main/scala/aqua/run/CallPreparer.scala b/aqua-run/src/main/scala/aqua/run/CallPreparer.scala index bddd491e..cde5b98d 100644 --- a/aqua-run/src/main/scala/aqua/run/CallPreparer.scala +++ b/aqua-run/src/main/scala/aqua/run/CallPreparer.scala @@ -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 diff --git a/aqua-run/src/main/scala/aqua/run/RunPreparer.scala b/aqua-run/src/main/scala/aqua/run/RunPreparer.scala index a10c296b..14c97aeb 100644 --- a/aqua-run/src/main/scala/aqua/run/RunPreparer.scala +++ b/aqua-run/src/main/scala/aqua/run/RunPreparer.scala @@ -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