summaryrefslogtreecommitdiff
path: root/vendor/github.com/ncruces/go-sqlite3/internal/util/error.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/ncruces/go-sqlite3/internal/util/error.go')
-rw-r--r--vendor/github.com/ncruces/go-sqlite3/internal/util/error.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/vendor/github.com/ncruces/go-sqlite3/internal/util/error.go b/vendor/github.com/ncruces/go-sqlite3/internal/util/error.go
index 1f5555fd3..2aecac96e 100644
--- a/vendor/github.com/ncruces/go-sqlite3/internal/util/error.go
+++ b/vendor/github.com/ncruces/go-sqlite3/internal/util/error.go
@@ -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)
+ }
+ }
+}