mirror of
https://github.com/fluencelabs/aqua.git
synced 2024-12-12 09:45:32 +00:00
fix(error-messages): fix incorrect number of arguments message [fixes LNG-108] (#645)
This commit is contained in:
parent
6570b82a8a
commit
d0a9db5164
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user