Skip to content

Commit ef6fa5a

Browse files
joriszwartrittneje
andauthored
Blob I/O: helpful error
Co-authored-by: rittneje <[email protected]>
1 parent 5b53687 commit ef6fa5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blob_io.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func (s *SQLiteBlob) Write(b []byte) (n int, err error) {
113113
// Seek implements the io.Seeker interface.
114114
func (s *SQLiteBlob) Seek(offset int64, whence int) (int64, error) {
115115
if offset > math.MaxInt32 {
116-
return 0, errors.New("sqlite3.SQLiteBlob.Seek: invalid position")
116+
return 0, fmt.Errorf("sqlite3.SQLiteBlob.Seek: invalid offset %d", offset)
117117
}
118118

119119
var abs int64

0 commit comments

Comments
 (0)