Update TextOutput.rb

added error output