src: `exec_and_check` print to stderr
authorAlexis Laferrière <alexis.laf@xymus.net>
Fri, 9 Sep 2016 14:35:19 +0000 (10:35 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Wed, 21 Sep 2016 16:57:59 +0000 (12:57 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

src/toolcontext.nit

index 8cea80f..bc99f81 100644 (file)
@@ -340,7 +340,7 @@ class ToolContext
                proc_which.wait
                var res = proc_which.status
                if res != 0 then
-                       print "{error}: executable \"{prog}\" not found"
+                       print_error "{error}: executable \"{prog}\" not found"
                        exit 1
                end
 
@@ -349,7 +349,7 @@ class ToolContext
                proc.wait
                res = proc.status
                if res != 0 then
-                       print "{error}: execution of \"{prog} {args.join(" ")}\" failed"
+                       print_error "{error}: execution of \"{prog} {args.join(" ")}\" failed"
                        exit 1
                end
        end