You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change from returning error to HttpError to allow the end-user to read the Status code from the server, along with the error message we already return.
type HttpError struct {
Err error
Status int
}
func (e *HttpError) Error() string {
return e.Err.Error()
}
The text was updated successfully, but these errors were encountered:
Change from returning error to HttpError to allow the end-user to read the Status code from the server, along with the error message we already return.
The text was updated successfully, but these errors were encountered: