From fa9ac853ce045388ca5cf1c514b65c3590c1544a Mon Sep 17 00:00:00 2001 From: Albert Nigmatzianov Date: Mon, 15 May 2017 08:37:15 +0200 Subject: [PATCH] cmd: Make detailed error when project not in $GOPATH Updates #448 --- cobra/cmd/project.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cobra/cmd/project.go b/cobra/cmd/project.go index 29fe127a..80643898 100644 --- a/cobra/cmd/project.go +++ b/cobra/cmd/project.go @@ -90,7 +90,7 @@ func NewProjectFromPath(absPath string) *Project { func trimSrcPath(absPath, srcPath string) string { relPath, err := filepath.Rel(srcPath, absPath) if err != nil { - er("Cobra supports project only within $GOPATH") + er("Cobra supports project only within $GOPATH: " + err.Error()) } return relPath }