mirror of
https://github.com/sstent/aicyclingcoach-go.git
synced 2026-04-05 04:23:56 +00:00
sync
This commit is contained in:
16
internal/garmin/errors.go
Normal file
16
internal/garmin/errors.go
Normal file
@@ -0,0 +1,16 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user