Skip to content

Error/Assertion wrapping #435

Open
Open
@ghostsquad

Description

@ghostsquad

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

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

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

This is related to google/jsonnet#415

Metadata

Metadata

Assignees

No one assigned

    Labels

    error reportingHow the errors are handled (e.g. stack trace quality)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions