mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-06 14:31:57 +02:00
errors join
This commit is contained in:
1 parent
835e5696d9
commit
c087a47d38
1 file changed
+2
-1
@@ -2,6 +2,7 @@ package s3api
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"math"
|
||||
"strings"
|
||||
@@ -161,7 +162,7 @@ func (s3a *S3ApiServer) updateEntriesTTL(parentDirectoryPath string, ttlSec int3
|
||||
}
|
||||
|
||||
if len(updateErrors) > 0 {
|
||||
return fmt.Errorf("failed to update %d entries: %v", len(updateErrors), updateErrors[0])
|
||||
return errors.Join(updateErrors...)
|
||||
}
|
||||
return nil
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user