nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pep8analysis: add copyright and doc to the pep8analysis_web module
[nit.git]
/
src
/
toolcontext.nit
diff --git
a/src/toolcontext.nit
b/src/toolcontext.nit
index
f313063
..
5b9d020
100644
(file)
--- 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
for m in messages do
if opt_no_color.value then
- stderr.write("{m}\n")
+ sys.stderr.write("{m}\n")
else
else
- stderr.write("{m.to_color_string}\n")
+ sys.stderr.write("{m.to_color_string}\n")
end
end
end
end
@@
-133,7
+133,10
@@
class ToolContext
print "{s}"
end
end
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
fun exec_and_check(args: Array[String], error: String)
do
var prog = args.first