aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src/lib.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2012-04-12 15:58:13 +0200
committerHans Bolinder <[email protected]>2012-05-15 10:20:55 +0200
commit55ba6810c48497149eeff21c543afe72602903d4 (patch)
tree830aa78fc2d81af3e919c23598e36991a9040b3f /lib/stdlib/src/lib.erl
parent6cad5325cccd5be59d9bcd5d71df7be4a5ad7ae2 (diff)
downloadotp-55ba6810c48497149eeff21c543afe72602903d4.tar.gz
otp-55ba6810c48497149eeff21c543afe72602903d4.tar.bz2
otp-55ba6810c48497149eeff21c543afe72602903d4.zip
Improve the nice 'badarith' message displayed by the shell
Diffstat (limited to 'lib/stdlib/src/lib.erl')
-rw-r--r--lib/stdlib/src/lib.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stdlib/src/lib.erl b/lib/stdlib/src/lib.erl
index 314fd60903..cf4b87d7eb 100644
--- a/lib/stdlib/src/lib.erl
+++ b/lib/stdlib/src/lib.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 1996-2011. All Rights Reserved.
+%% Copyright Ericsson AB 1996-2012. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -209,7 +209,7 @@ explain_reason(badarg, error, [], _PF, _S) ->
explain_reason({badarg,V}, error=Cl, [], PF, S) -> % orelse, andalso
format_value(V, <<"bad argument: ">>, Cl, PF, S);
explain_reason(badarith, error, [], _PF, _S) ->
- <<"bad argument in an arithmetic expression">>;
+ <<"an error occurred when evaluating an arithmetic expression">>;
explain_reason({badarity,{Fun,As}}, error, [], _PF, _S)
when is_function(Fun) ->
%% Only the arity is displayed, not the arguments As.