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():
|
def usage():
|
||||||
print 'Usage: themupdate.py /path/to/themerc > newthemerc'
|
out('Usage: themupdate.py /path/to/themerc > newthemerc\n\n')
|
||||||
print
|
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
@ -210,8 +209,7 @@ try:
|
||||||
except IndexError:
|
except IndexError:
|
||||||
usage()
|
usage()
|
||||||
except IOError:
|
except IOError:
|
||||||
print 'Unable to open file "' + sys.argv[1] + '"'
|
out('Unable to open file "' + sys.argv[1] + '"\n\n')
|
||||||
print
|
|
||||||
usage()
|
usage()
|
||||||
|
|
||||||
data = file.readlines()
|
data = file.readlines()
|
||||||
|
|
Loading…
Reference in a new issue