nitc: `exec_and_check` print the command on verbose level > 1
authorAlexis Laferrière <alexis.laf@xymus.net>
Sat, 10 Jan 2015 14:09:49 +0000 (09:09 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Mon, 12 Jan 2015 19:48:57 +0000 (14:48 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

src/toolcontext.nit

index 8f08e30..021c2c7 100644 (file)
@@ -243,6 +243,8 @@ class ToolContext
        # Stops execution and prints errors if the program isn't available or didn't end correctly
        fun exec_and_check(args: Array[String], error: String)
        do
+               info("+ {args.join(" ")}", 2)
+
                var prog = args.first
                args.remove_at 0