From afe58ede974644141ab6be44fa1fdeb3f33a3ed1 Mon Sep 17 00:00:00 2001 From: Chris Mungall Date: Sun, 2 Apr 2017 14:20:31 -0700 Subject: [PATCH] If errors are ignored, report this. This happens if an exec fails, and either -k is passed or the line starts '-' --- prolog/biomake/biomake.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/prolog/biomake/biomake.pl b/prolog/biomake/biomake.pl index 2625d61..19d182f 100644 --- a/prolog/biomake/biomake.pl +++ b/prolog/biomake/biomake.pl @@ -551,7 +551,10 @@ handle_exec_error(_,0,_,_,_) :- !. handle_exec_error(Exec,Err,T,SL,Opts) :- - handle_error('Error ~w executing ~w',[Err,Exec],T,SL,Opts). + ( get_opt(keep_going_on_error,true,Opts) + -> IgnoreInfo=' (ignored)' + ; IgnoreInfo=''), + handle_error('Error ~w executing ~w~w',[Err,Exec,IgnoreInfo],T,SL,Opts). handle_error(Fmt,Args,T,SL,Opts) :- format(string(WhileFmt),"While building ~w: ~w",[T,Fmt]),