Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Commit c2deecc

Browse files
committed
use errors package instead of fmt
1 parent 382d489 commit c2deecc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ func (c *Ctx) resolveProjectRoot(path string) (string, error) {
165165
// sure how to resolve it.
166166
for _, gp := range c.GOPATHS {
167167
if filepath.HasPrefix(path, gp) {
168-
return "", fmt.Errorf("'%s' is linked to another path within a GOPATH (%s)", path, gp)
168+
return "", errors.Errorf("'%s' is linked to another path within a GOPATH (%s)", path, gp)
169169
}
170170
}
171171

0 commit comments

Comments
 (0)