Skip to content

Fix error message for too many arguments with at least one named arg#97

Merged
edsilfer merged 1 commit intomasterfrom
edgar/improve-wrong-message-error-during-function-invocation
Nov 6, 2020
Merged

Fix error message for too many arguments with at least one named arg#97
edsilfer merged 1 commit intomasterfrom
edgar/improve-wrong-message-error-during-function-invocation

Conversation

@edsilfer
Copy link
Copy Markdown
Contributor

@edsilfer edsilfer commented Nov 4, 2020

What changes are proposed in this pull request?

This PR fixes issue 83 by changing the error message thrown when two parameters are passed to a function that was expecting only one. The message now matches the official jsonnet.org specification.

How is this tested?

  • A new unit test with a reproducible scenario of the issue
  • ./mill "sjsonnet[2.13.3].jvm.test.testLocal"
  • Manually tested to check the behavior when importing the function from another file

@edsilfer edsilfer self-assigned this Nov 4, 2020
@edsilfer edsilfer force-pushed the edgar/improve-wrong-message-error-during-function-invocation branch from 391bcb5 to 3a1aecf Compare November 4, 2020 14:51
@edsilfer edsilfer force-pushed the edgar/improve-wrong-message-error-during-function-invocation branch 6 times, most recently from a92d8ed to 54efa34 Compare November 6, 2020 12:29
@edsilfer edsilfer force-pushed the edgar/improve-wrong-message-error-during-function-invocation branch from 54efa34 to 717a377 Compare November 6, 2020 15:04
@edsilfer edsilfer merged commit 2c909ba into master Nov 6, 2020
@stephenamar-db stephenamar-db deleted the edgar/improve-wrong-message-error-during-function-invocation branch April 18, 2025 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error message resolving passed arguments with the wrong name

4 participants