ci: bump to go 1.23 (#453)
Upgrade to Go 1.23. Upgrade also requires bumping `golangci-lint` to v1.62.2, and upgrading third-party test versions for some failing cases.
This commit is contained in:
committed by
GitHub
parent
3b84ecd27b
commit
b985ff5775
@@ -73,13 +73,13 @@ func (e ErrorList) Error() string {
|
||||
}
|
||||
|
||||
// LogError logs a list of errors, one error per line, if the err parameter is
|
||||
// an ErrorList. Otherwise it just logs the err string. Reports at most max
|
||||
// errors, or unlimited if max is 0.
|
||||
func LogError(l *log.Logger, err error, max int) {
|
||||
// an ErrorList. Otherwise it just logs the err string. Reports at most mx
|
||||
// errors, or unlimited if mx is 0.
|
||||
func LogError(l *log.Logger, err error, mx int) {
|
||||
var list ErrorList
|
||||
if errors.As(err, &list) {
|
||||
for i, e := range list {
|
||||
if max > 0 && i == max {
|
||||
if mx > 0 && i == mx {
|
||||
l.Print("too many errors")
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user