Browse Source

errors join

pull/7426/head
chrislu 4 weeks ago
parent
commit
c087a47d38
  1. 3
      weed/s3api/filer_util.go

3
weed/s3api/filer_util.go

@ -2,6 +2,7 @@ package s3api
import ( import (
"context" "context"
"errors"
"fmt" "fmt"
"math" "math"
"strings" "strings"
@ -161,7 +162,7 @@ func (s3a *S3ApiServer) updateEntriesTTL(parentDirectoryPath string, ttlSec int3
} }
if len(updateErrors) > 0 { if len(updateErrors) > 0 {
return fmt.Errorf("failed to update %d entries: %v", len(updateErrors), updateErrors[0])
return errors.Join(updateErrors...)
} }
return nil return nil
}) })

Loading…
Cancel
Save