cmd: Make detailed error when project not in $GOPATH

Updates #448
This commit is contained in:
Albert Nigmatzianov 2017-05-15 08:37:15 +02:00
parent 51b7cf57e1
commit fa9ac853ce

View File

@ -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
}