From 09f2bc8138596703e2cc4c3e6c684011a06b51db Mon Sep 17 00:00:00 2001 From: Djomanix Date: Tue, 29 Apr 2014 16:41:48 -0400 Subject: [PATCH] nitg: Added comment for exec_and_check Signed-off-by: Djomanix --- src/toolcontext.nit | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/toolcontext.nit b/src/toolcontext.nit index f313063..b9ba9e8 100644 --- a/src/toolcontext.nit +++ b/src/toolcontext.nit @@ -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 -- 1.7.9.5