Commit 879c0622 authored by Jakub Klinkovský's avatar Jakub Klinkovský Committed by Lukas Fleischer
Browse files

gendummydata.py: set exit code to 1 when there is an error



Of course the default exit code is 0...
Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <lfleischer@archlinux.org>
parent 92e31546
...@@ -44,19 +44,19 @@ log = logging.getLogger() ...@@ -44,19 +44,19 @@ log = logging.getLogger()
if len(sys.argv) != 2: if len(sys.argv) != 2:
log.error("Missing output filename argument") log.error("Missing output filename argument")
raise SystemExit raise SystemExit(1)
# make sure the seed file exists # make sure the seed file exists
# #
if not os.path.exists(SEED_FILE): if not os.path.exists(SEED_FILE):
log.error("Please install the 'words' Arch package") log.error("Please install the 'words' Arch package")
raise SystemExit raise SystemExit(1)
# make sure comments can be created # make sure comments can be created
# #
if not os.path.exists(FORTUNE_FILE): if not os.path.exists(FORTUNE_FILE):
log.error("Please install the 'fortune-mod' Arch package") log.error("Please install the 'fortune-mod' Arch package")
raise SystemExit raise SystemExit(1)
# track what users/package names have been used # track what users/package names have been used
# #
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment