data/pieceStore/dataBackend: ErrNotFound now aliases os.ErrNotExist

This commit is contained in:
Matt Joiner 2015-11-13 22:35:18 +11:00
parent fdf46e00b7
commit b3ed8ca09e
1 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,8 @@
package dataBackend
import (
"errors"
"io"
"os"
)
// All functions must return ErrNotFound as required.
@ -13,7 +13,7 @@ type I interface {
Delete(path string) error
}
var ErrNotFound = errors.New("not found")
var ErrNotFound = os.ErrNotExist
type File interface {
io.Closer