Skip to content

Commit

Permalink
fix(dashmate): status command fails if drive is not running (#2364)
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov authored Dec 3, 2024
1 parent 571bafa commit 2f8c3f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/dashmate/src/status/scopes/platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { DockerStatusEnum } from '../enums/dockerStatus.js';
import { ServiceStatusEnum } from '../enums/serviceStatus.js';
import determineStatus from '../determineStatus.js';
import ContainerIsNotPresentError from '../../docker/errors/ContainerIsNotPresentError.js';
import ServiceIsNotRunningError from '../../docker/errors/ServiceIsNotRunningError.js';

/**
* @returns {getPlatformScopeFactory}
Expand Down Expand Up @@ -218,7 +219,8 @@ export default function getPlatformScopeFactory(
// Throw an error if it's not a Drive issue
if (!(e instanceof DockerComposeError
&& e.dockerComposeExecutionResult
&& e.dockerComposeExecutionResult.exitCode !== 0)) {
&& e.dockerComposeExecutionResult.exitCode !== 0)
&& !(e instanceof ServiceIsNotRunningError)) {
throw e;
}
}
Expand Down

0 comments on commit 2f8c3f6

Please sign in to comment.