-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve std.get and error messages (#223)
This PR does 2 things: It improves std.get() to only compute default when it's needed. and it makes builtin error more readable Before ``` bazel-bin/bazel/jsonnet/sjsonnet.jar -e 'std.get(["a", "b"], "a", null)' sjsonnet.Error: Wrong parameter type: expected Object, got array at [ApplyBuiltin].(<exec>:1:8) ``` after ``` bazel-bin/bazel/jsonnet/sjsonnet.jar -e 'std.get(["a", "b"], "a", null)' sjsonnet.Error: Wrong parameter type: expected Object, got array at [std.get].(<exec>:1:8) ````
- Loading branch information
1 parent
cd12e18
commit 0f9f9b4
Showing
6 changed files
with
254 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.