Skip to content

fix(cli): indent a multi-line error head below the causes - #1282

Merged
BryanFRD merged 1 commit into
mainfrom
fix/error-head-indent
Oct 5, 2026
Merged

BryanFRD merged 1 commit into
mainfrom
fix/error-head-indent

Conversation

@BryanFRD

@BryanFRD BryanFRD commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Closes #1280

On a coded error, continuation lines of the head were indented by two spaces, the depth of the causes that follow, so a multi-line head and its first cause read as one block. Head continuations now take four spaces; causes keep two, and their own continuations four. The uncoded path already separates its causes with Caused by: and is unchanged.

The existing multi-line test now expects the deeper indent, and a new test with a two-line head followed by a cause checks they stay apart; it fails with the previous indent.

@BryanFRD
BryanFRD enabled auto-merge (squash) October 5, 2026 18:33

@ferrfleet ferrfleet Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks correct. With continuation lines of a coded head at 4 spaces, they can no longer be mistaken for a 2-space cause line. The uncoded path already tells them apart through the Caused by: prefix. The new test covers the case, and the updated expectations match the new indent.

@BryanFRD
BryanFRD merged commit 4f46827 into main Oct 5, 2026
32 checks passed
@BryanFRD
BryanFRD deleted the fix/error-head-indent branch October 5, 2026 18:36
ferrflow Bot added a commit that referenced this pull request Oct 5, 2026
## [7.28.2] - 2026-10-05

### Bug Fixes

- fix(cli): indent a multi-line error head below the causes (#1282)
- fix(docs): restore the accents in the French E1024 entry (#1283)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(cli): a multi-line coded error head blends into the causes below it

1 participant