Этот коммит содержится в:
Christopher Speller
2018-07-22 20:14:05 -07:00
коммит произвёл GitHub
родитель 3539a9a60b
Коммит bac3376278
131 изменённых файлов: 2442 добавлений и 2814 удалений

2
vendor/github.com/hashicorp/errwrap/README.md сгенерированный поставляемый
Просмотреть файл

@@ -48,7 +48,7 @@ func main() {
// We can use the Contains helpers to check if an error contains
// another error. It is safe to do this with a nil error, or with
// an error that doesn't even use the errwrap package.
if errwrap.Contains(err, ErrNotExist) {
if errwrap.Contains(err, "does not exist") {
// Do something
}
if errwrap.ContainsType(err, new(os.PathError)) {