diff options
| author | chrislu <chris.lu@gmail.com> | 2025-11-05 13:50:08 -0800 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2025-11-05 13:50:08 -0800 |
| commit | c087a47d38af8461d75c5a4f37faee2aad342051 (patch) | |
| tree | 465e2be0c92f354c3ba297f59bb107f7af3dfba3 | |
| parent | 835e5696d9f07d12647999064d459fbd0942a157 (diff) | |
| download | seaweedfs-c087a47d38af8461d75c5a4f37faee2aad342051.tar.xz seaweedfs-c087a47d38af8461d75c5a4f37faee2aad342051.zip | |
errors join
| -rw-r--r-- | weed/s3api/filer_util.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/s3api/filer_util.go b/weed/s3api/filer_util.go index 28091f8ba..0ec3df771 100644 --- a/weed/s3api/filer_util.go +++ b/weed/s3api/filer_util.go @@ -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 }) |
