Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add detail to HashMap's lookup error message #9621

Merged
merged 2 commits into from
May 10, 2021

Conversation

eed3si9n
Copy link
Member

@eed3si9n eed3si9n commented May 9, 2021

Fixes scala/bug#12391

Scala 2.13 throws NoSuchElementException without any messages.
It's expected to throw "key not found: x"
This fixes it.

Fixes scala bug 12391

Scala 2.13 throws NoSuchElementException without any messages.
It's expected to throw "key not found: x"
This fixes it.
Copy link
Contributor

@som-snytt som-snytt left a comment

Choose a reason for hiding this comment

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

Suggested different characters because too much time on my hands. Oh just realized I forgot about the suggest feature in github.

@dwijnand dwijnand changed the title Fixes HashMap error message Add detail to HashMap's lookup error message May 10, 2021
Copy link
Member

@dwijnand dwijnand left a comment

Choose a reason for hiding this comment

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

LGTM, thanks Eugene.

@dwijnand dwijnand merged commit 82af885 into scala:2.13.x May 10, 2021
@eed3si9n eed3si9n deleted the wip/hashmap branch May 10, 2021 14: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
4 participants