#7988: name the missing map key in the error by AzazelSensei · Pull Request #8012 · objectionary/eo · GitHub
Skip to content

#7988: name the missing map key in the error - #8012

Open
AzazelSensei wants to merge 2 commits into
objectionary:masterfrom
AzazelSensei:fix-7988-map-missing-key
Open

#7988: name the missing map key in the error#8012
AzazelSensei wants to merge 2 commits into
objectionary:masterfrom
AzazelSensei:fix-7988-map-missing-key

Conversation

@AzazelSensei

Copy link
Copy Markdown

A missing key used to print its hash ("Object by hash code %d from given key does not exists"). I don't have that number, and the grammar was wrong.

The message is now "The key '%s' is not in the map". If the key is not text, it falls back to the key's bytes with %x.

Closes #7988

The missing-key message printed a hash the caller never saw, and said
"does not exists". It now names the key as text, or as its bytes when
the key is not UTF-8.
@github-actions

github-actions Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown
Member

The fast (ubuntu-24.04) check is failing. Could you please investigate and fix the test failures before this can be merged?


Generated by Claude Code

yegor256 commented Sep 1, 2026

Copy link
Copy Markdown
Member

fast (ubuntu-24.04) is red on this PR. Not merging until CI is green.


Generated by Claude Code

@yegor256
yegor256 self-requested a review September 1, 2026 06:42
%s of a number's bytes is valid UTF-8, so recovered never
fell through to %x. A key is treated as text only when it
has length.
@AzazelSensei

Copy link
Copy Markdown
Author

fast was red on can_name_the_missing_key_by_its_bytes_when_it_is_not_text. %s of a number's bytes is valid UTF-8, so the fallback never ran. A key is treated as text only when it has length.

@sonarqubecloud

sonarqubecloud Bot commented Sep 1, 2026

Copy link
Copy Markdown

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

Labels

counts Some counts changed in this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

map function incorrectly reports missing key using its hash code and improper grammar

2 participants