Skip to content

Interpolate shorthand syntax error caret location#10500

Open
Devil1716 wants to merge 1 commit into
aws:developfrom
Devil1716:fix/shorthand-syntax-error-location
Open

Interpolate shorthand syntax error caret location#10500
Devil1716 wants to merge 1 commit into
aws:developfrom
Devil1716:fix/shorthand-syntax-error-location

Conversation

@Devil1716

Copy link
Copy Markdown

Made with Cursor

ShorthandParseSyntaxError._construct_msg concatenated a plain string
containing `{self._error_location()}`, so the caret diagnostic was
never rendered. Move the call into the f-string and assert the message.

Fixes aws#10467

Co-authored-by: Cursor <cursoragent@cursor.com>
@Devil1716
Devil1716 requested a review from a team as a code owner July 18, 2026 08:02
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.

1 participant