cleaner error message

This commit is contained in:
Chris Lu committed 2012-09-26 20:30:05 -07:00
1 parent 46d13f6b5e
commit 33d5778a46
2 files changed
+9 -4

No files matched your search

+2 -2
View File
@@ -1,11 +1,11 @@
package storage
import (
"io"
"log"
"os"
"path"
"sync"
"errors"
)
const (
@@ -105,5 +105,5 @@ func (v *Volume) read(n *Needle) (int, error) {
v.dataFile.Seek(int64(nv.Offset)*8, 0)
return n.Read(v.dataFile, nv.Size)
}
return -1, io.EOF
return -1, errors.New("Not Found")
}