From 10ea3707cb220d1b936ce103e78d2a500e6c03e6 Mon Sep 17 00:00:00 2001 From: Magnus Henoch Date: Thu, 23 Jun 2016 10:04:12 +0100 Subject: Fix try-catch when writing makefile Any exceptions at this point would be of class error, not exit. --- lib/compiler/src/compile.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]}} -- cgit v1.2.3