mirror of
https://github.com/volatiletech/authboss.git
synced 2025-07-03 00:47:13 +02:00
Add router tests.
- Rename Endpoint to Location in ErrAndRedirect
This commit is contained in:
@ -40,13 +40,13 @@ func (c ClientDataErr) Error() string {
|
||||
// be to redirect.
|
||||
type ErrAndRedirect struct {
|
||||
Err error
|
||||
Endpoint string
|
||||
Location string
|
||||
FlashSuccess string
|
||||
FlashError string
|
||||
}
|
||||
|
||||
func (e ErrAndRedirect) Error() string {
|
||||
return fmt.Sprintf("Error: %v, Redirecting to: %s", e.Err, e.Endpoint)
|
||||
return fmt.Sprintf("Error: %v, Redirecting to: %s", e.Err, e.Location)
|
||||
}
|
||||
|
||||
// RenderErr represents an error that occured during rendering
|
||||
|
Reference in New Issue
Block a user