aboutsummaryrefslogtreecommitdiff
path: root/src/gleam__stdlib.erl
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2019-09-17 20:52:37 +0100
committerLouis Pilfold <louis@lpil.uk>2019-09-17 22:20:26 +0100
commit7ef601e5f01d3f63d93a88675754bd745267d71a (patch)
tree5efc68b6befb903c40598c91b9d18e574957b602 /src/gleam__stdlib.erl
parentdcf7b566a74c9388f491cbb14454c3789868ba30 (diff)
downloadgleam_stdlib-7ef601e5f01d3f63d93a88675754bd745267d71a.tar.gz
gleam_stdlib-7ef601e5f01d3f63d93a88675754bd745267d71a.zip
Unify error types
Diffstat (limited to 'src/gleam__stdlib.erl')
-rw-r--r--src/gleam__stdlib.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gleam__stdlib.erl b/src/gleam__stdlib.erl
index 55e847d..b9236ed 100644
--- a/src/gleam__stdlib.erl
+++ b/src/gleam__stdlib.erl
@@ -17,7 +17,7 @@ expect_is_error(A) -> ?assertMatch({error, _}, A).
map_fetch(Map, Key) ->
case maps:find(Key, Map) of
- error -> {error, not_found};
+ error -> {error, nil};
OkFound -> OkFound
end.
@@ -79,7 +79,7 @@ parse_int(String) ->
{ok, Integer};
_ ->
- {error, parse_error}
+ {error, nil}
end.
parse_float(String) ->