aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/compile.erl
diff options
context:
space:
mode:
authorMagnus Henoch <[email protected]>2016-06-23 10:04:12 +0100
committerMagnus Henoch <[email protected]>2016-06-23 10:04:12 +0100
commit10ea3707cb220d1b936ce103e78d2a500e6c03e6 (patch)
tree4967eee5c44bd721b72bfcd5c78b07750ca88226 /lib/compiler/src/compile.erl
parentfe954ec3f29cfff9f421ae967b47fc9aac24c248 (diff)
downloadotp-10ea3707cb220d1b936ce103e78d2a500e6c03e6.tar.gz
otp-10ea3707cb220d1b936ce103e78d2a500e6c03e6.tar.bz2
otp-10ea3707cb220d1b936ce103e78d2a500e6c03e6.zip
Fix try-catch when writing makefile
Any exceptions at this point would be of class error, not exit.
Diffstat (limited to 'lib/compiler/src/compile.erl')
-rw-r--r--lib/compiler/src/compile.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compiler/src/compile.erl b/lib/compiler/src/compile.erl
index 9fdfdadebf..e2eff2a89b 100644
--- a/lib/compiler/src/compile.erl
+++ b/lib/compiler/src/compile.erl
@@ -1208,7 +1208,7 @@ makedep_output(#compile{code=Code,options=Opts,ofile=Ofile}=St) ->
end,
{ok,St}
catch
- exit:_ ->
+ error:_ ->
%% Couldn't write to output Makefile.
Err = {St#compile.ifile,[{none,?MODULE,write_error}]},
{error,St#compile{errors=St#compile.errors++[Err]}}