traefik/vendor/github.com/exoscale/egoscale/error.go

10 lines
180 B
Go
Raw Normal View History

2017-02-07 21:33:23 +00:00
package egoscale
import (
"fmt"
)
func (e *Error) Error() error {
return fmt.Errorf("exoscale API error %d (internal code: %d): %s", e.ErrorCode, e.CSErrorCode, e.ErrorText)
}