This commit is contained in:
2025-09-17 17:30:18 -07:00
parent 6bad6cae00
commit 84ba6432c2
65 changed files with 434 additions and 765 deletions

16
internal/garmin/errors.go Normal file
View 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
}