Skip to content

refactor: improved error messages with descriptive type and operator information - #380

Merged
DeveloperC286 merged 1 commit into
mainfrom
claude/error-message-consistency-7g9iqv
Sep 5, 2026
Merged

refactor: improved error messages with descriptive type and operator information#380
DeveloperC286 merged 1 commit into
mainfrom
claude/error-message-consistency-7g9iqv

Conversation

@DeveloperC286

@DeveloperC286 DeveloperC286 commented Sep 5, 2026

Copy link
Copy Markdown
Owner

No description provided.

@DeveloperC286 DeveloperC286 changed the title Improve error messages with descriptive type and operator information refactor: improved error messages with descriptive type and operator information Sep 5, 2026
The evaluator bailed with bare CamelCase identifiers (TypeMismatch,
UnknownOperator, UncallableObject, UnassignableObject) whilst the parser
used prose sentences. The identifiers carried no context, neither the
operand types nor the operator involved.

Every error message is now a prose sentence naming the operator and the
operand types, matching the parser's existing style. Two parser messages
which had the same defect are also converted,
CallExpressionParametersEndedAbruptly and
FunctionParametersEndedAbruptly.

Object::type_name and a Display implementation for InfixOperator provide
the type and operator names within the messages.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014EFyLCDrWHNfzGurYzwdSQ
@DeveloperC286
DeveloperC286 force-pushed the claude/error-message-consistency-7g9iqv branch from 2abae84 to b746948 Compare September 5, 2026 01:14
@DeveloperC286
DeveloperC286 merged commit 1884901 into main Sep 5, 2026
23 checks passed
@DeveloperC286
DeveloperC286 deleted the claude/error-message-consistency-7g9iqv branch September 5, 2026 01:18
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.

2 participants