Commits

Anonymous committed 424cb9c

Dump error messages to stderr, not stdout.

Comments (0)

Files changed (2)

     yucca program.bas
 
 Python's `fileinput` module is used, so the BASIC source can also be piped
-into `yucca`, and so forth.
+into `yucca`, and so forth.  Error messages are printed on the standard error
+stream.
 
 By default, `yucca` checks that each line number in the program source is
 given in strictly ascending order.  Some tokenizers (e.g. `petcat`) will
         errors += p.check_line_numbers()
     if len(errors) > 0:
         for error in errors:
-            print error
+            sys.stderr.write("%s\n" % error)
         sys.exit(1)
 
     if options.dump_output: