open-vault/vendor/github.com/michaelklishin/rabbit-hole/error.go
Jeff Mitchell 4d7a0ab772 Bump deps
2017-03-30 20:03:13 -04:00

14 lines
276 B
Go

package rabbithole
import "fmt"
type ErrorResponse struct {
StatusCode int
Message string `json:"error"`
Reason string `json:"reason"`
}
func (rme ErrorResponse) Error() string {
return fmt.Sprintf("Error %d (%s): %s", rme.StatusCode, rme.Message, rme.Reason)
}