Permalink
Browse files

If errors are ignored, report this.

This happens if an exec fails, and either -k is passed or the line starts '-'
  • Loading branch information...
cmungall committed Apr 2, 2017
1 parent a425896 commit afe58ede974644141ab6be44fa1fdeb3f33a3ed1
Showing with 4 additions and 1 deletion.
  1. +4 −1 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]),

0 comments on commit afe58ed

Please sign in to comment.