aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/error_handler.erl
diff options
context:
space:
mode:
authorNiclas Axelsson <[email protected]>2011-03-11 12:06:29 +0100
committerNiclas Axelsson <[email protected]>2011-03-11 12:09:56 +0100
commitcdc5de779b4d1007a961d8f99c9280c460142777 (patch)
tree6daeaf9840a08e4e1130c59c989975e54a305c67 /lib/kernel/src/error_handler.erl
parentc114083eeae4b98f30a6b2091e6839aee7573ddc (diff)
parent1dbdec773861869b8b3b0c8bb5ccb92bf6cc84c5 (diff)
downloadotp-cdc5de779b4d1007a961d8f99c9280c460142777.tar.gz
otp-cdc5de779b4d1007a961d8f99c9280c460142777.tar.bz2
otp-cdc5de779b4d1007a961d8f99c9280c460142777.zip
Merge branch 'ks/kernel-dialyzer-cleanups' into dev
* ks/kernel-dialyzer-cleanups: Add spec for function that does not return Strenghen spec Introduce types to avoid duplication in specs Add specs for functions that do not return Add specs for behaviour callbacks Simplify two specs OTP-9127
Diffstat (limited to 'lib/kernel/src/error_handler.erl')
-rw-r--r--lib/kernel/src/error_handler.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/kernel/src/error_handler.erl b/lib/kernel/src/error_handler.erl
index 885eeb2b0f..6f69f4ccb9 100644
--- a/lib/kernel/src/error_handler.erl
+++ b/lib/kernel/src/error_handler.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 1996-2010. All Rights Reserved.
+%% Copyright Ericsson AB 1996-2011. 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
@@ -80,9 +80,13 @@ int() -> int.
%%
%% Crash providing a beautiful stack backtrace.
%%
+-spec crash(atom(), [term()]) -> no_return().
+
crash(Fun, Args) ->
crash({Fun,Args}).
+-spec crash(atom(), atom(), arity()) -> no_return().
+
crash(M, F, A) ->
crash({M,F,A}).