Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
home:Ledest:erlang:26
erlang
0334-erl_stdlib_errors-Fix-wonky-error-descript...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0334-erl_stdlib_errors-Fix-wonky-error-description-for-ma.patch of Package erlang
From 19970c8eec0ad1e52e89f17b2d424e10c3465e6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20H=C3=B6gberg?= <john@erlang.org> Date: Wed, 14 Aug 2024 09:23:22 +0200 Subject: [PATCH] erl_stdlib_errors: Fix wonky error description for maps:update/3 --- lib/stdlib/src/erl_stdlib_errors.erl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/stdlib/src/erl_stdlib_errors.erl b/lib/stdlib/src/erl_stdlib_errors.erl index 8105be712b..b5864c471f 100644 --- a/lib/stdlib/src/erl_stdlib_errors.erl +++ b/lib/stdlib/src/erl_stdlib_errors.erl @@ -269,6 +269,9 @@ format_maps_error(take, _Args) -> [[], not_map]; format_maps_error(to_list, _Args) -> [not_map_or_iterator]; +format_maps_error(update, [Key, _Value, Map]) when is_map(Map) -> + false = is_map_key(Key, Map), %Assertion. + [<<"not present in map">>, [], []]; format_maps_error(update, _Args) -> [[], [], not_map]; format_maps_error(update_with, [_Key, Fun, Map]) -> -- 2.43.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor