Skip to content

[9.0.1] Add a new optional param to fail() to allow pretty-printing user erro…#28817

Open
iancha1992 wants to merge 1 commit intobazelbuild:release-9.0.1from
iancha1992:cp28816
Open

[9.0.1] Add a new optional param to fail() to allow pretty-printing user erro…#28817
iancha1992 wants to merge 1 commit intobazelbuild:release-9.0.1from
iancha1992:cp28816

Conversation

@iancha1992
Copy link
Member

…rs without a stack trace.

This allows a new fail(stack_trace = False, 'Message') which will not include a stack trace. This allows an intentional failure that is user facing to be a bit more user friendly since they're unlikely to want to see the stack trace. A flag --force_eval_stack_trace can be used to unconditionally include the stack trace for debugging.

RELNOTES:
Added an optional parameter to allow eliding the stack trace when calling fail(). PiperOrigin-RevId: 834908566
Change-Id: Ia7fd1673ec90e068b1a23578bd1094c662b94312

Description

Motivation

Build API Changes

No

Checklist

  • I have added tests for the new use cases (if any).
  • I have updated the documentation (if applicable).

Release Notes

RELNOTES: None

Commit d787b3b

…rs without a stack trace.

This allows a new fail(stack_trace = False, 'Message') which will not include a
stack trace.  This allows an intentional failure that is user facing to be a bit
more user friendly since they're unlikely to want to see the stack trace.  A
flag --force_eval_stack_trace can be used to unconditionally include the stack
trace for debugging.

RELNOTES:
Added an optional parameter to allow eliding the stack trace when calling fail().
PiperOrigin-RevId: 834908566
Change-Id: Ia7fd1673ec90e068b1a23578bd1094c662b94312
@iancha1992 iancha1992 requested a review from brandjon February 26, 2026 19:11
@iancha1992 iancha1992 requested a review from a team as a code owner February 26, 2026 19:11
@iancha1992 iancha1992 added awaiting-review PR is awaiting review from an assigned reviewer team-CLI Console UI labels Feb 26, 2026
@iancha1992 iancha1992 enabled auto-merge February 26, 2026 19:11
@iancha1992 iancha1992 added this to the 9.0.1 release blockers milestone Feb 26, 2026
iancha1992 referenced this pull request Feb 26, 2026
…rs without a stack trace.

This allows a new fail(stack_trace = False, 'Message') which will not include a
stack trace.  This allows an intentional failure that is user facing to be a bit
more user friendly since they're unlikely to want to see the stack trace.  A
flag --force_eval_stack_trace can be used to unconditionally include the stack
trace for debugging.

RELNOTES:
Added an optional parameter to allow eliding the stack trace when calling fail().
PiperOrigin-RevId: 834908566
Change-Id: Ia7fd1673ec90e068b1a23578bd1094c662b94312
@iancha1992
Copy link
Member Author

@brandjon won't be able to approve this PR until March 2nd. So added you as reviewers @Wyverald @meteorcloudy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-review PR is awaiting review from an assigned reviewer team-CLI Console UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants