google / google/go-jsonnet

Error/Assertion wrapping

Open
#435 6 comments 0 reactions 0 assignees View on GitHub
error reporting
Dominant language
Go
Stars
1.8k
Forks
263
PR merge metrics
No merged PRs in 30d

Description

I'd like to be able to do something like this, similar to how Go lets you wrap errors.

```jsonnet
local assertFoo()::
assert false : "nope!";
true;

assert assertFoo() : "higher level operation failed";
```

This is related to https://github.com/google/jsonnet/issues/415

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.