()
| 252 | } |
| 253 | |
| 254 | func (e *ErrInvalidPromotionToken) Error() string { |
| 255 | message := fmt.Sprintf("invalid promotion token (%s)", e.reason) |
| 256 | if e.err != nil { |
| 257 | message = fmt.Sprintf("%s: %s", message, e.err.Error()) |
| 258 | } |
| 259 | return message |
| 260 | } |
| 261 | |
| 262 | func (e *ErrInvalidPromotionToken) Unwrap() error { |
| 263 | return e.err |
no outgoing calls
no test coverage detected