aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src/beam_lib.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2018-02-26 13:22:49 +0100
committerGitHub <[email protected]>2018-02-26 13:22:49 +0100
commit1c7938bc9539f1c06b5493ced9f265e05a4824af (patch)
treed40fe6c50d4c5d9e4039b2275b12e830a0b73edb /lib/stdlib/src/beam_lib.erl
parent7914843737e490c49b0918b67a093e68415b3beb (diff)
parent0018bf63fcce35f6704cff5c34d398b32706fd75 (diff)
downloadotp-1c7938bc9539f1c06b5493ced9f265e05a4824af.tar.gz
otp-1c7938bc9539f1c06b5493ced9f265e05a4824af.tar.bz2
otp-1c7938bc9539f1c06b5493ced9f265e05a4824af.zip
Merge pull request #1719 from josevalim/jv-faster-dialyzer-md5
dialyzer: Compute MD5s using the .beam file (OTP-14937)
Diffstat (limited to 'lib/stdlib/src/beam_lib.erl')
-rw-r--r--lib/stdlib/src/beam_lib.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/stdlib/src/beam_lib.erl b/lib/stdlib/src/beam_lib.erl
index 06c15fceda..24349c74e8 100644
--- a/lib/stdlib/src/beam_lib.erl
+++ b/lib/stdlib/src/beam_lib.erl
@@ -148,7 +148,8 @@ chunks(File, Chunks, Options) ->
try read_chunk_data(File, Chunks, Options)
catch Error -> Error end.
--spec all_chunks(beam()) -> {'ok', 'beam_lib', [{chunkid(), dataB()}]}.
+-spec all_chunks(beam()) ->
+ {'ok', 'beam_lib', [{chunkid(), dataB()}]} | {'error', 'beam_lib', info_rsn()}.
all_chunks(File) ->
read_all_chunks(File).