Skip to content

Commit

Permalink
fix: int to string type conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario-F committed Nov 20, 2021
1 parent 8a516c7 commit 09e2b78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/hetzner/hetzner.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"bytes"
"encoding/json"
"errors"
"fmt"
"net/http"
"sync"

Expand Down Expand Up @@ -70,7 +71,7 @@ func (r Record) Update() error {
return err
}
if resp.StatusCode != 200 {
return errors.New("Failed to update record, statuscode: " + string(resp.StatusCode))
return errors.New("Failed to update record, statuscode: " + fmt.Sprint(resp.StatusCode))
}

return nil
Expand Down

0 comments on commit 09e2b78

Please sign in to comment.