Skip to content

Commit

Permalink
feat: include docker daemon mention in error
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaRedHand committed Feb 3, 2025
1 parent a139090 commit 1853b44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/kurtosis/kurtosis.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package kurtosis

import (
"context"
"fmt"
"os/exec"

"github.com/kurtosis-tech/kurtosis/api/golang/core/lib/enclaves"
Expand All @@ -22,7 +23,7 @@ func InitKurtosisContext() (KurtosisCtx, error) {
// Kurtosis engine is probably not running. Try to start it.
// TODO: avoid using the CLI for this
if exec.Command("kurtosis", "engine", "start").Run() != nil {
return KurtosisCtx{}, err
return KurtosisCtx{}, fmt.Errorf("failed to start Kurtosis engine: %w\nThis might be because the docker daemon is not running", err)

Check failure on line 26 in src/kurtosis/kurtosis.go

View workflow job for this annotation

GitHub Actions / go_lint

The line is 135 characters long, which exceeds the maximum of 120 characters. (lll)
}
ctx, err = kurtosis_context.NewKurtosisContextFromLocalEngine()
}
Expand Down

0 comments on commit 1853b44

Please sign in to comment.