From 32f810ae165c05e99cf1a8530e40f4da7eb2697f Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Fri, 16 Aug 2013 10:56:02 -0400 Subject: Options: fixed error message when bcfg2.conf is not readable --- src/lib/Bcfg2/Options/Parser.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/lib') diff --git a/src/lib/Bcfg2/Options/Parser.py b/src/lib/Bcfg2/Options/Parser.py index 8b56548a9..f72671edf 100644 --- a/src/lib/Bcfg2/Options/Parser.py +++ b/src/lib/Bcfg2/Options/Parser.py @@ -201,8 +201,7 @@ class Parser(argparse.ArgumentParser): # check whether the specified bcfg2.conf exists if not os.path.exists(bootstrap.config): - print("Could not read %s" % bootstrap.config) - return 1 + self.error("Could not read %s" % bootstrap.config) self.add_config_file(self.configfile.dest, bootstrap.config) # phase 2: re-parse command line, loading additional -- cgit v1.2.3-1-g7c22