mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Failures return exit code 1
This commit is contained in:
parent
e1dc1cbcb3
commit
2f8d063b5d
1 changed files with 3 additions and 3 deletions
|
@ -125,14 +125,14 @@ def cli(manual_args=None):
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
util.prompt("[There seems to be something wrong with your jrnl config at {}: {}]".format(CONFIG_PATH, e.message))
|
util.prompt("[There seems to be something wrong with your jrnl config at {}: {}]".format(CONFIG_PATH, e.message))
|
||||||
util.prompt("[Entry was NOT added to your journal]")
|
util.prompt("[Entry was NOT added to your journal]")
|
||||||
sys.exit(-1)
|
sys.exit(1)
|
||||||
install.update_config(config, config_path=CONFIG_PATH)
|
install.update_config(config, config_path=CONFIG_PATH)
|
||||||
|
|
||||||
original_config = config.copy()
|
original_config = config.copy()
|
||||||
# check if the configuration is supported by available modules
|
# check if the configuration is supported by available modules
|
||||||
if config['encrypt'] and not PYCRYPTO:
|
if config['encrypt'] and not PYCRYPTO:
|
||||||
util.prompt("According to your jrnl_conf, your journal is encrypted, however PyCrypto was not found. To open your journal, install the PyCrypto package from http://www.pycrypto.org.")
|
util.prompt("According to your jrnl_conf, your journal is encrypted, however PyCrypto was not found. To open your journal, install the PyCrypto package from http://www.pycrypto.org.")
|
||||||
sys.exit(-1)
|
sys.exit(1)
|
||||||
|
|
||||||
args = parse_args(manual_args)
|
args = parse_args(manual_args)
|
||||||
|
|
||||||
|
@ -156,7 +156,7 @@ def cli(manual_args=None):
|
||||||
journal = Journal.DayOne(**config)
|
journal = Journal.DayOne(**config)
|
||||||
else:
|
else:
|
||||||
util.prompt("[Error: {} is a directory, but doesn't seem to be a DayOne journal either.".format(config['journal']))
|
util.prompt("[Error: {} is a directory, but doesn't seem to be a DayOne journal either.".format(config['journal']))
|
||||||
sys.exit(-1)
|
sys.exit(1)
|
||||||
else:
|
else:
|
||||||
journal = Journal.Journal(**config)
|
journal = Journal.Journal(**config)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue