We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eff2c25 commit ede8399Copy full SHA for ede8399
sql/errors.go
@@ -16,6 +16,7 @@ package sql
16
17
import (
18
"fmt"
19
+ "io"
20
"strings"
21
22
"github.com/dolthub/vitess/go/mysql"
@@ -1068,6 +1069,15 @@ func (w WrappedInsertError) Error() string {
1068
1069
return w.Cause.Error()
1070
}
1071
1072
+// Format implements fmt.Formatter
1073
+func (w WrappedInsertError) Format(s fmt.State, verb rune) {
1074
+ if fmtErr, ok := w.Cause.(fmt.Formatter); ok {
1075
+ fmtErr.Format(s, verb)
1076
+ return
1077
+ }
1078
+ _, _ = io.WriteString(s, w.Error())
1079
+}
1080
+
1081
// IgnorableError is used propagate information about an error that needs to be ignored and does not interfere with
1082
// any update accumulators
1083
type IgnorableError struct {
0 commit comments