mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
Fix error printing caused panic
This commit is contained in:
parent
8ddb436fac
commit
aa088cb318
1 changed files with 1 additions and 1 deletions
2
error.go
2
error.go
|
|
@ -12,6 +12,6 @@ type RequestError struct {
|
|||
Message string
|
||||
}
|
||||
|
||||
func (re *RequestError) String() string {
|
||||
func (re *RequestError) Error() string {
|
||||
return fmt.Sprintf("error for endpoint %s (%d): %s", re.Response.Request.URL.String(), re.Response.StatusCode, re.Message)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue