diff options
author | Jean-Sébastien Pédron <[email protected]> | 2014-03-19 15:19:19 +0100 |
---|---|---|
committer | Jean-Sébastien Pédron <[email protected]> | 2014-03-24 17:37:29 +0100 |
commit | f149194f227fd593757ff2c750b82b62f9a6e8aa (patch) | |
tree | f1ac375ec02f2673cf5e03e1b40a9ecaa3503b85 /erts/etc | |
parent | 8acc644e162bad52f7ab81c76c0cad15628e4f3d (diff) | |
download | otp-f149194f227fd593757ff2c750b82b62f9a6e8aa.tar.gz otp-f149194f227fd593757ff2c750b82b62f9a6e8aa.tar.bz2 otp-f149194f227fd593757ff2c750b82b62f9a6e8aa.zip |
sasl: Fix crash in systools_make:format_error/1
The crash occurred when systools:make_script/2 raises the
'duplicate_modules' error. Depending on the 'silent' option,
systools_make:format_error/1 is called to either format and display an
error message, or return a tuple containing the error properties.
When displaying a 'duplicate_modules' error message, format_error/1
receives a list of applications providing the same module(s):
[
{{Mod,App1,_}, {Mod,App2,_}},
...
]
However, before this fix, format_error/1 expected the following
structure, leading to a 'function_clause' exception:
[
{{Mod,_,App1,_,_}, {Mod,_,App2,_,_}},
...
]
The crash never occurred with the 'silent' option, because the error and
its properties are returned as is to the caller.
Diffstat (limited to 'erts/etc')
0 files changed, 0 insertions, 0 deletions