Skip to content

Commit b1c2689

Browse files
authored
improve logging message (#326)
1 parent b22fd96 commit b1c2689

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

openhexa/cli/api.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class PipelineDirectoryError(Exception):
8686

8787

8888
class DockerError(Exception):
89-
"""Raised when Docker is not running or is not installed."""
89+
"""Raised when Docker is not running or is not accessible."""
9090

9191
pass
9292

@@ -409,9 +409,10 @@ def run_pipeline(path: Path, config: dict, image: str = None, debug: bool = Fals
409409
try:
410410
docker_client = docker.from_env()
411411
docker_client.ping()
412-
except docker.errors.DockerException:
412+
except docker.errors.DockerException as e:
413413
raise DockerError(
414-
"Docker is not running or is not installed. Please install Docker Desktop and start the service."
414+
"Docker is not accessible. Please ensure the Docker daemon is running and the Docker socket is accessible.\n"
415+
f"Error details: {str(e)}"
415416
)
416417

417418
if image is None:

0 commit comments

Comments
 (0)