[cli] return exit code 1 for daemon not running

This commit is contained in:
samschott 2024-03-26 23:36:40 +01:00
parent 840bf24f57
commit d0f26ad3ac
No known key found for this signature in database
GPG Key ID: 455100A147F0A99C

View File

@ -105,7 +105,7 @@ def inject_proxy(
proxy = ctx.with_resource(MaestralProxy(config_name, fallback=fallback))
except CommunicationError:
click.echo("Maestral daemon is not running.")
ctx.exit(0)
ctx.exit(1)
else:
return ctx.invoke(f, proxy, *args, **kwargs)