mirror of
https://github.com/gomods/athens
synced 2026-02-03 17:50:32 +00:00
12 lines
245 B
Go
12 lines
245 B
Go
package errors
|
|
|
|
import (
|
|
"strings"
|
|
)
|
|
|
|
// IsRepoNotFoundErr returns true if the Go command line
|
|
// hints at a repository not found.
|
|
func IsRepoNotFoundErr(err error) bool {
|
|
return strings.Contains(err.Error(), "remote: Repository not found")
|
|
}
|