Improve "Try etiquette_cli init" message.

This commit is contained in:
voussoir 2021-01-15 00:02:24 -08:00
parent d26112bd21
commit c3ec4f06a3
3 changed files with 3 additions and 3 deletions

View file

@ -779,7 +779,7 @@ def main(argv):
)
except etiquette.exceptions.NoClosestPhotoDB as exc:
pipeable.stderr(exc.error_message)
pipeable.stderr('Try etiquette_cli init')
pipeable.stderr('Try `etiquette_cli.py init` to create the database.')
return 1
if __name__ == '__main__':

View file

@ -60,7 +60,7 @@ def etiquette_flask_launch(
backend.common.init_photodb(log_level=LOG_LEVEL)
except etiquette.exceptions.NoClosestPhotoDB as exc:
pipeable.stderr(exc.error_message)
pipeable.stderr('Try etiquette_cli init')
pipeable.stderr('Try `etiquette_cli.py init` to create the database.')
return 1
message = f'Starting server on port {port}, pid={os.getpid()}'

View file

@ -44,7 +44,7 @@ def erepl_argparse(args):
P = etiquette.photodb.PhotoDB.closest_photodb(log_level=LOG_LEVEL)
except etiquette.exceptions.NoClosestPhotoDB as exc:
pipeable.stderr(exc.error_message)
pipeable.stderr('Try etiquette_cli init')
pipeable.stderr('Try `etiquette_cli.py init` to create the database.')
return 1
if args.exec_statement: