Skip to content

Fix multiline rescue exception formatting (#356)#798

Merged
fables-tales merged 2 commits intotrunkfrom
fix-rescue-multiline
Jan 18, 2026
Merged

Fix multiline rescue exception formatting (#356)#798
fables-tales merged 2 commits intotrunkfrom
fix-rescue-multiline

Conversation

@fables-tales
Copy link
Owner

When rescue has many exception types that exceed the line length, format them across multiple lines with proper indentation:

rescue OpenSSL::SSL::SSLError,
OpenSSL::SSL::SSLError,
OpenSSL::SSL::SSLError => exception

Short lists still stay on one line: rescue A, B, C => e

When rescue has many exception types that exceed the line length,
format them across multiple lines with proper indentation:

  rescue OpenSSL::SSL::SSLError,
    OpenSSL::SSL::SSLError,
    OpenSSL::SSL::SSLError => exception

Short lists still stay on one line: rescue A, B, C => e

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Verifies that a long rescue line on a single line gets properly
broken across multiple lines when it exceeds the line length limit.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@fables-tales fables-tales merged commit 9478bdf into trunk Jan 18, 2026
8 checks passed
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.

A long rescue line or multiline rescue with multiple errors is formatted to be a single long line

2 participants