diff options
author | Magnus Henoch <[email protected]> | 2016-06-23 10:04:12 +0100 |
---|---|---|
committer | Magnus Henoch <[email protected]> | 2016-06-23 10:04:12 +0100 |
commit | 10ea3707cb220d1b936ce103e78d2a500e6c03e6 (patch) | |
tree | 4967eee5c44bd721b72bfcd5c78b07750ca88226 | |
parent | fe954ec3f29cfff9f421ae967b47fc9aac24c248 (diff) | |
download | otp-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.
-rw-r--r-- | lib/compiler/src/compile.erl | 2 |
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]}} |