Skip to content

Commit

Permalink
fix(scyllaclient): don't return payload on error
Browse files Browse the repository at this point in the history
Fixes #3972
  • Loading branch information
Michal-Leszczynski committed Aug 19, 2024
1 parent c470d85 commit ecbbc23
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/scyllaclient/client_rclone.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,10 @@ func (c *Client) RcloneDeletePaths(ctx context.Context, host, remoteDir string,
},
}
res, err := c.agentOps.OperationsDeletepaths(&p)
return res.Payload.Deletes, err
if err != nil {
return 0, err
}
return res.Payload.Deletes, nil
}

// RcloneDiskUsage get disk space usage.
Expand Down

0 comments on commit ecbbc23

Please sign in to comment.