aboutsummaryrefslogtreecommitdiffstats
path: root/lib/syntax_tools/src/erl_tidy.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2017-06-16 10:22:45 +0200
committerHans Bolinder <[email protected]>2017-06-22 09:16:34 +0200
commit9408d05ad6789496aab395cdcaf51625b95732cc (patch)
tree846f17143a9b3d958acd3c99b48dbd2f94746df7 /lib/syntax_tools/src/erl_tidy.erl
parent040bdce67f88d833bfb59adae130a4ffb4c180f0 (diff)
downloadotp-9408d05ad6789496aab395cdcaf51625b95732cc.tar.gz
otp-9408d05ad6789496aab395cdcaf51625b95732cc.tar.bz2
otp-9408d05ad6789496aab395cdcaf51625b95732cc.zip
syntax_tools: erl_tidy: Do not hang when exits are trapped
See also ERL-413, https://bugs.erlang.org/browse/ERL-413.
Diffstat (limited to 'lib/syntax_tools/src/erl_tidy.erl')
-rw-r--r--lib/syntax_tools/src/erl_tidy.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/syntax_tools/src/erl_tidy.erl b/lib/syntax_tools/src/erl_tidy.erl
index 1ca60ea73b..888cb71f51 100644
--- a/lib/syntax_tools/src/erl_tidy.erl
+++ b/lib/syntax_tools/src/erl_tidy.erl
@@ -301,6 +301,8 @@ file(Name, Opts) ->
{Child, ok} ->
ok;
{Child, {error, Reason}} ->
+ exit(Reason);
+ {'EXIT', Child, Reason} ->
exit(Reason)
end.