From c98aa34adf8a6e45634f0fb18552fdddb54ebf55 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Mon, 16 Jun 2008 18:35:01 -0300 Subject: [PATCH] Use a nice name for exit status. --- pymind | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pymind b/pymind index c29dabb..d40c80f 100755 --- a/pymind +++ b/pymind @@ -7,6 +7,9 @@ from pymin.dispatcher import Handler from pymin.service import load_service, LoadError import config +# exit status +EXIT_NO_SERVICE = 1 + class Root(Handler): pass @@ -18,7 +21,7 @@ def build_root(config): s = load_service(service, config.services_dirs) except LoadError, e: sys.stderr.write("Can't find service called '%s'\n" % service) - sys.exit(1) + sys.exit(EXIT_NO_SERVICE) services[service] = s root = Root() for name, service in services.items(): -- 2.43.0