s3: Improve error message in debug log
This commit is contained in:
parent
19da56a6ea
commit
a4e8dc3371
1 changed files with 1 additions and 1 deletions
|
@ -238,7 +238,7 @@ func (be *Backend) Save(ctx context.Context, h restic.Handle, rd io.Reader) (err
|
|||
info, err := coreClient.PutObject(be.bucketname, objName, size, rd, nil, nil, nil)
|
||||
|
||||
be.sem.ReleaseToken()
|
||||
debug.Log("%v -> %v bytes, err %#v", objName, info.Size, err)
|
||||
debug.Log("%v -> %v bytes, err %#v: %v", objName, info.Size, err, err)
|
||||
|
||||
return errors.Wrap(err, "client.PutObject")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue