1
0
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:
Aaron
2015-02-24 14:45:37 -08:00
parent e369d626a8
commit 1075149bb8
8 changed files with 244 additions and 55 deletions

View File

@ -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