Skip to content

Commit 893e77d

Browse files
committed
Blob I/O: format error
1 parent 01dbf4b commit 893e77d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

blob_io.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import "C"
1717

1818
import (
1919
"errors"
20+
"fmt"
2021
"io"
2122
"math"
2223
"runtime"
@@ -120,7 +121,7 @@ func (s *SQLiteBlob) Seek(offset int64, whence int) (int64, error) {
120121
case io.SeekEnd:
121122
abs = int64(s.size) + offset
122123
default:
123-
return 0, errors.New("sqlite3.SQLiteBlob.Seek: invalid whence")
124+
return 0, fmt.Errorf("sqlite3.SQLiteBlob.Seek: invalid whence %d", whence)
124125
}
125126

126127
if abs < 0 {

0 commit comments

Comments
 (0)