Files
oauth2/google/internal/oauth/err.go
Patrick Jones 802bddef7c Run go fmt.
2020-10-06 01:18:45 -07:00

15 lines
325 B
Go

package externalaccount
import "fmt"
//Struct for handling OAuth related error responses as stated in rfc6749#5.2
type Error struct {
Code string
URI string
Description string
}
func (err *Error) Error() string {
return fmt.Sprintf("got error code %s from %s: %s", err.Code, err.URI, err.Description)
}