lavender/auth/redirect-error.go

15 lines
241 B
Go
Raw Normal View History

2025-01-25 19:49:57 +00:00
package auth
import "fmt"
type RedirectError struct {
Target string
Code int
}
func (e RedirectError) TargetUrl() string { return e.Target }
func (e RedirectError) Error() string {
return fmt.Sprintf("redirect to '%s'", e.Target)
}