nitg: Added comment for exec_and_check
authorDjomanix <johan.kayser@viacesi.fr>
Tue, 29 Apr 2014 20:41:48 +0000 (16:41 -0400)
committerDjomanix <johan.kayser@viacesi.fr>
Fri, 2 May 2014 14:43:25 +0000 (10:43 -0400)
Signed-off-by: Djomanix <johan.kayser@viacesi.fr>

src/toolcontext.nit

index f313063..b9ba9e8 100644 (file)
@@ -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