From d0f26ad3ac8cf55fa7dd65de36c64ada8474f406 Mon Sep 17 00:00:00 2001 From: samschott Date: Tue, 26 Mar 2024 23:36:40 +0100 Subject: [PATCH] [cli] return exit code 1 for daemon not running --- src/maestral/cli/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/maestral/cli/common.py b/src/maestral/cli/common.py index 6d2052d1..2cc2a908 100644 --- a/src/maestral/cli/common.py +++ b/src/maestral/cli/common.py @@ -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)