Skip to content

Commit

Permalink
Skip the final 'command opam xxx failed' unless in verbose mode
Browse files Browse the repository at this point in the history
this is redundant since there must be more precise error messages, and we already
got the return value of the program for that
  • Loading branch information
AltGr committed Feb 27, 2014
1 parent d3dd9b0 commit c3ec406
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/client/opamArg.ml
Expand Up @@ -1392,7 +1392,8 @@ let run default commands =
with
| OpamGlobals.Exit 0 -> ()
| e ->
Printf.eprintf "'%s' failed.\n" (String.concat " " (Array.to_list Sys.argv));
if !OpamGlobals.verbose then
Printf.eprintf "'%s' failed.\n" (String.concat " " (Array.to_list Sys.argv));
let exit_code = ref 1 in
begin match e with
| OpamGlobals.Exit i ->
Expand Down

0 comments on commit c3ec406

Please sign in to comment.