diff options
author | 2015-03-05 15:04:37 -0800 | |
---|---|---|
committer | 2015-03-05 15:08:01 -0800 | |
commit | b73285d6b3eb03ddaa0969d83f20e685890bc042 (patch) | |
tree | 30fe0d57a53dc1cc5a64955b466b3bb9cd69975f /src/build/file2str.py | |
parent | 2dfeced11b186388bab548088730acafdfc05201 (diff) |
Send error messages to stderr instead of stdout. (nw)
Diffstat (limited to 'src/build/file2str.py')
-rw-r--r-- | src/build/file2str.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/build/file2str.py b/src/build/file2str.py index b23c16618af..2b420eef339 100644 --- a/src/build/file2str.py +++ b/src/build/file2str.py @@ -26,7 +26,7 @@ else: try: myfile = open(srcfile, 'rb') except IOError: - print("Unable to open source file '%s'" % srcfile) + sys.stderr.write("Unable to open source file '%s'\n" % srcfile) sys.exit(-1) byteCount = os.path.getsize(srcfile) @@ -56,5 +56,5 @@ try: dst.write('\n};\n') dst.close() except IOError: - print("Unable to open output file '%s'" % dstfile) + sys.stderr.write("Unable to open output file '%s'\n" % dstfile) sys.exit(-1) |