mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 06:02:26 -05:00
parent
9a7c8926f5
commit
1de41f64f2
7 changed files with 50 additions and 6 deletions
10
vendor/github.com/ncruces/go-sqlite3/internal/util/error.go
generated
vendored
10
vendor/github.com/ncruces/go-sqlite3/internal/util/error.go
generated
vendored
|
|
@ -104,3 +104,13 @@ func ErrorCodeString(rc uint32) string {
|
|||
}
|
||||
return "sqlite3: unknown error"
|
||||
}
|
||||
|
||||
type ErrorJoiner []error
|
||||
|
||||
func (j *ErrorJoiner) Join(errs ...error) {
|
||||
for _, err := range errs {
|
||||
if err != nil {
|
||||
*j = append(*j, err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue