mirror of
https://github.com/spf13/cobra
synced 2024-11-24 14:47:12 +00:00
parent
51b7cf57e1
commit
fa9ac853ce
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ func NewProjectFromPath(absPath string) *Project {
|
||||||
func trimSrcPath(absPath, srcPath string) string {
|
func trimSrcPath(absPath, srcPath string) string {
|
||||||
relPath, err := filepath.Rel(srcPath, absPath)
|
relPath, err := filepath.Rel(srcPath, absPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
er("Cobra supports project only within $GOPATH")
|
er("Cobra supports project only within $GOPATH: " + err.Error())
|
||||||
}
|
}
|
||||||
return relPath
|
return relPath
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue