diff --git a/cmd/run_test.go b/cmd/run_test.go index e5610d6..96e0c0c 100644 --- a/cmd/run_test.go +++ b/cmd/run_test.go @@ -220,8 +220,7 @@ something masterly "shuttle/cmd/testdata/wrong-project-local/plan: no such file or directory", ), initErr: errors.New( - `failed to copy plan to .shuttle/plan, make sure the upstream plan exists - err: stat /Users/kah/git/github.com/lunarway/shuttle/cmd/testdata/wrong-project-local/plan: no such file or directory`, + `failed to copy plan to .shuttle/plan, make sure the upstream plan exists`, ), }, } diff --git a/pkg/config/shuttleplan.go b/pkg/config/shuttleplan.go index 079c452..040704c 100644 --- a/pkg/config/shuttleplan.go +++ b/pkg/config/shuttleplan.go @@ -156,7 +156,7 @@ func handleFilePath(plan string, projectPath string) (string, error) { ignorelist := []string{".git", ".shuttle"} err := copy.Dir(plan, toPath, ignorelist) if err != nil { - return "", fmt.Errorf("failed to copy plan to .shuttle/plan, make sure the upstream plan exists\n\terr: %w", err) + return "", fmt.Errorf("failed to copy plan to .shuttle/plan, make sure the upstream plan exists") } return toPath, nil }