mirror of
https://github.com/Finesssee/ProxyPilot.git
synced 2026-11-19 02:17:46 +00:00
Type was defined but never used anywhere in codebase. Keep EmailRequiredError which is actively used. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
14 lines
299 B
Go
14 lines
299 B
Go
package auth
|
|
|
|
// EmailRequiredError indicates that the calling context must provide an email or alias.
|
|
type EmailRequiredError struct {
|
|
Prompt string
|
|
}
|
|
|
|
func (e *EmailRequiredError) Error() string {
|
|
if e == nil || e.Prompt == "" {
|
|
return "cliproxy auth: email is required"
|
|
}
|
|
return e.Prompt
|
|
}
|