summaryrefslogtreecommitdiff
path: root/lib/stdlib/src/binary.erl
diff options
context:
space:
mode:
authorNelson Vides <videsnelson@gmail.com>2021-04-07 12:17:51 +0200
committerNelson Vides <videsnelson@gmail.com>2021-04-07 12:17:51 +0200
commit481a56bd7ca07163039e47de4fde8a7595adc193 (patch)
tree0977ea3ae2fbc41ef9bca9a85d5b91f3decdf056 /lib/stdlib/src/binary.erl
parent40f9ea13be0c43c48548876bfcb485e9f63a5a72 (diff)
downloaderlang-481a56bd7ca07163039e47de4fde8a7595adc193.tar.gz
Report better error messages
Diffstat (limited to 'lib/stdlib/src/binary.erl')
-rw-r--r--lib/stdlib/src/binary.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stdlib/src/binary.erl b/lib/stdlib/src/binary.erl
index 9a214a1b00..70c1431906 100644
--- a/lib/stdlib/src/binary.erl
+++ b/lib/stdlib/src/binary.erl
@@ -482,7 +482,7 @@ unhex(26160) -> 240; unhex(26161) -> 241; unhex(26162) -> 242; unhex(26163) -> 2
unhex(26177) -> 250; unhex(26178) -> 251; unhex(26179) -> 252; unhex(26180) -> 253; unhex(26181) -> 254; unhex(26182) -> 255;
unhex(26209) -> 250; unhex(26210) -> 251; unhex(26211) -> 252; unhex(26212) -> 253; unhex(26213) -> 254; unhex(26214) -> 255;
unhex(Char) ->
- badarg_with_cause([<<Char>>], invalid_hex).
+ badarg_with_info([<<Char:16>>]).
badarg_with_cause(Args, Cause) ->
erlang:error(badarg, Args, [{error_info, #{module => erl_stdlib_errors,