mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-19 08:21:01 +00:00
16 lines
227 B
Go
16 lines
227 B
Go
|
package internal
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
)
|
||
|
|
||
|
type APIClientErr struct {
|
||
|
Message string
|
||
|
URL string
|
||
|
Cause error
|
||
|
}
|
||
|
|
||
|
func (e APIClientErr) Error() string {
|
||
|
return fmt.Sprintf("%s (Requested %s): %v", e.Message, e.URL, e.Cause)
|
||
|
}
|