diff --git a/packages/dashmate/src/commands/status/index.js b/packages/dashmate/src/commands/status/index.js index 84f831ae76a..b85066c0d11 100644 --- a/packages/dashmate/src/commands/status/index.js +++ b/packages/dashmate/src/commands/status/index.js @@ -24,7 +24,11 @@ class StatusCommand extends ConfigBaseCommand { config, ) { if (!(await dockerCompose.isServiceRunning(config.toEnvs()))) { - throw new Error('Node is not running, start it with `dashmate start`'); + const error = new Error('Node is not running, start it with `dashmate start`'); + + error.exitCode = 2; + + throw error; } const scope = await getOverviewScope(config);