mirror of
https://github.com/ncruces/go-sqlite3.git
synced 2026-01-11 21:49:13 +00:00
Enums (result codes, flags…)
This commit is contained in:
6
error.go
6
error.go
@@ -6,8 +6,8 @@ import (
|
||||
)
|
||||
|
||||
type Error struct {
|
||||
Code int
|
||||
ExtendedCode int
|
||||
Code ErrorCode
|
||||
ExtendedCode ExtendedErrorCode
|
||||
str string
|
||||
msg string
|
||||
}
|
||||
@@ -19,7 +19,7 @@ func (e Error) Error() string {
|
||||
if e.str != "" {
|
||||
b.WriteString(e.str)
|
||||
} else {
|
||||
b.WriteString(strconv.Itoa(e.Code))
|
||||
b.WriteString(strconv.Itoa(int(e.Code)))
|
||||
}
|
||||
|
||||
if e.msg != "" {
|
||||
|
||||
Reference in New Issue
Block a user