Print error message to stderr (Fix bug 5731)

As stdout is redirected to /dev/null by some DMs, we need to print error
messages to stderr.
This commit is contained in:
Xin Wang 2012-08-17 07:57:08 +08:00 committed by Dana Jansens
parent 65693d18db
commit c6997ba19e

View file

@ -29,7 +29,7 @@ try:
from xdg.Exceptions import ParsingError
except ImportError:
print
print "ERROR:", ME, "requires PyXDG to be installed"
print >>sys.stderr, "ERROR:", ME, "requires PyXDG to be installed"
print
sys.exit(1)