X-Git-Url: http://nitlanguage.org diff --git a/src/toolcontext.nit b/src/toolcontext.nit index f313063..5b9d020 100644 --- a/src/toolcontext.nit +++ b/src/toolcontext.nit @@ -90,9 +90,9 @@ class ToolContext for m in messages do if opt_no_color.value then - stderr.write("{m}\n") + sys.stderr.write("{m}\n") else - stderr.write("{m.to_color_string}\n") + sys.stderr.write("{m.to_color_string}\n") end end @@ -133,7 +133,10 @@ class ToolContext print "{s}" end end - + + # Executes a program while checking if it's available and if the execution ended correctly + # + # 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 var prog = args.first