Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Conversation

edsilfer
Copy link
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
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