(operation string, timeout time.Duration, hint string)
| 46 | } |
| 47 | |
| 48 | func keyringTimeoutError(operation string, timeout time.Duration, hint string) error { |
| 49 | return fmt.Errorf("%w after %v while %s (%s); "+ |
| 50 | "set %s to allow more time, or set GOG_KEYRING_BACKEND=file and GOG_KEYRING_PASSWORD=<password> to use encrypted file storage instead", |
| 51 | errKeyringTimeout, timeout, operation, hint, keyringOpenTimeoutEnv) |
| 52 | } |
| 53 | |
| 54 | func IsKeyringTimeout(err error) bool { |
| 55 | if err == nil { |
no test coverage detected