[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[minion-cvs] Better error when server gets config file without -f flag
Update of /home/minion/cvsroot/src/minion/lib/mixminion/server
In directory moria.mit.edu:/tmp/cvs-serv32743/lib/mixminion/server
Modified Files:
ServerMain.py
Log Message:
Better error when server gets config file without -f flag
Index: ServerMain.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/server/ServerMain.py,v
retrieving revision 1.118
retrieving revision 1.119
diff -u -d -r1.118 -r1.119
--- ServerMain.py 21 Feb 2004 00:02:09 -0000 1.118
+++ ServerMain.py 1 Mar 2004 06:54:54 -0000 1.119
@@ -1072,8 +1072,10 @@
"daemon", "nodaemon", "echo", "severity="])
if args:
print >>sys.stderr, "No arguments expected."
+ if len(args) == 1:
+ print >>sys.stderr, "Did you mean to use the '-f' flag?"
print usage
- sys.exit(0)
+ sys.exit(1)
configFile = None
forceDaemon = None
severity = None