Skip to content

[FR]: Provide an API for early exit without stacktrace #967

@rafikk

Description

@rafikk

What is the current behavior?

AFAIK, there are currently two ways to exit early in an aspect task:

  1. Return an exit code from an impl function
  2. Call fail to exit with a stack trace

Describe the feature

It would be great if it wre possible to exit early from a nested function call without a stack trace. Ideally this would be possible with a new API accessible via ctx. Perhaps ctx.std.process.exit to mirror the Rust stdlib? Another option would be to mirror BXL's fail_no_stacktrace.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions