1
0

Standardizing message format and implementing stderr for errors

This commit is contained in:
Julian Tosh
2012-07-07 06:39:25 -07:00
parent b615fe0c8c
commit a3830e5903
8 changed files with 94 additions and 53 deletions

View File

@@ -99,7 +99,8 @@ if __name__ == '__main__':
elif cmd == 'stop':
out = server.stop()
except socket.error:
print "server not running"
sys.stderr.write("Server not running\n")
sys.stderr.flush()
sys.exit(1)
print out
sys.exit(0)