show errors on stderr
This commit is contained in:
parent
13430ce547
commit
959126d9a2
1 changed files with 2 additions and 4 deletions
|
@ -201,8 +201,7 @@ def err_missing(data):
|
|||
|
||||
|
||||
def usage():
|
||||
print 'Usage: themupdate.py /path/to/themerc > newthemerc'
|
||||
print
|
||||
out('Usage: themupdate.py /path/to/themerc > newthemerc\n\n')
|
||||
sys.exit()
|
||||
|
||||
try:
|
||||
|
@ -210,8 +209,7 @@ try:
|
|||
except IndexError:
|
||||
usage()
|
||||
except IOError:
|
||||
print 'Unable to open file "' + sys.argv[1] + '"'
|
||||
print
|
||||
out('Unable to open file "' + sys.argv[1] + '"\n\n')
|
||||
usage()
|
||||
|
||||
data = file.readlines()
|
||||
|
|
Loading…
Reference in a new issue