lib/airake/fcshd.rb in airake-0.1.6 vs lib/airake/fcshd.rb in airake-0.1.7
- old
+ new
@@ -78,12 +78,18 @@
msg = "compile #{cmd.index}"
end
compile_errors = false
e = Thread.new {
- while(line = fcsh.e.gets)
- io.puts "[FCSH ERROR] #{line}"
- compile_errors = true
+ while line = fcsh.e.gets
+ if line.strip.empty?
+ io.puts " "
+ elsif line =~ /.?: Warning: .?/
+ io.puts "[FCSH WARNING] #{line}"
+ else
+ io.puts "[FCSH ERROR] #{line}"
+ compile_errors = true
+ end
end
}
fcsh.puts msg
io.puts fcsh.read