We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug The error message returned from maps:update is misleading.
maps:update
To Reproduce Open an Erlang shell. Type:
2> maps:update(u, 1, #{}). ** exception error: bad key: u in function maps:update/3 called as maps:update(u,1,#{}) *** argument 3: not a map
Indeed, the key is a bad, key, but I would argue that the 3rd argument is a valid map. This is not just for the empty map, but even for:
3> maps:update(u, 1, #{c => 1}). ** exception error: bad key: u in function maps:update/3 called as maps:update(u,1,#{c => 1}) *** argument 3: not a map
Expected behavior I expect the error message not to complain about the actual third argument.
Affected versions The OTP versions that are affected by this bug. Tested this on OTP-26.2.5.
The text was updated successfully, but these errors were encountered:
Thanks for your report, I've fixed it in #8721 :-)
Sorry, something went wrong.
jhogberg
Successfully merging a pull request may close this issue.
Describe the bug
The error message returned from
maps:update
is misleading.To Reproduce
Open an Erlang shell. Type:
Indeed, the key is a bad, key, but I would argue that the 3rd argument is a valid map.
This is not just for the empty map, but even for:
Expected behavior
I expect the error message not to complain about the actual third argument.
Affected versions
The OTP versions that are affected by this bug.
Tested this on OTP-26.2.5.
The text was updated successfully, but these errors were encountered: