Skip to content

Commit

Permalink
Merge pull request #42 from evoldoers/report-if-errors-ignored
Browse files Browse the repository at this point in the history
If errors are ignored, report
  • Loading branch information
ihh authored Apr 2, 2017
2 parents a425896 + afe58ed commit ae8c24e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion prolog/biomake/biomake.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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]),
Expand Down

0 comments on commit ae8c24e

Please sign in to comment.