mirror of
https://github.com/sstent/aicyclingcoach-go.git
synced 2026-01-27 17:42:23 +00:00
17 lines
328 B
Go
17 lines
328 B
Go
package garmin
|
|
|
|
import "fmt"
|
|
|
|
// AuthenticationError represents an authentication failure with Garmin Connect.
|
|
type AuthenticationError struct {
|
|
Err error
|
|
}
|
|
|
|
func (e *AuthenticationError) Error() string {
|
|
return fmt.Sprintf("authentication failed: %v", e.Err)
|
|
}
|
|
|
|
func (e *AuthenticationError) Unwrap() error {
|
|
return e.Err
|
|
}
|