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

Disallow function values in std.format #145

Merged
merged 1 commit into from
Feb 25, 2022
Merged

Conversation

szeiger
Copy link
Collaborator

@szeiger szeiger commented Feb 24, 2022

For compatibility with jsonnet. Fixes #144.

For compatibility with jsonnet. Fixes databricks#144.

test("format_func") - check(
"""|sjsonnet.Error: Cannot format function value
| at [Function].(sjsonnet/test/resources/db/error.format_func.jsonnet:1:9)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...and unlike the C++ implementation we even produce a useful position that points the the failing argument

@szeiger szeiger requested a review from iuliand-db February 25, 2022 14:24
@szeiger szeiger merged commit 256c037 into databricks:master Feb 25, 2022
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.

Inconsistency between sjsonnet and jsonnet
2 participants