Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/dashmate/src/commands/status/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down