Skip to content

Commit 41cbe7e

Browse files
committed
fix update farm error parsing
1 parent 3aaaf8f commit 41cbe7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

node-registrar/client/farm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ func (c *RegistrarClient) updateFarm(farmID uint64, opts []UpdateFarmOpts) (err
189189

190190
if resp.StatusCode != http.StatusOK {
191191
err = parseResponseError(resp.Body)
192-
return fmt.Errorf("failed to create farm with status code %s", resp.Status)
192+
return errors.Wrapf(err, "failed to create farm with status code %s", resp.Status)
193193
}
194194

195195
return

0 commit comments

Comments
 (0)