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 26, 2024
1 parent d59a92c commit 13eef6a
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 13eef6a

Please sign in to comment.