mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 07:50:56 +00:00
beego/session: return proper error when session is not found
Parent errs was returned instead of err which is returned from the last statement.
This commit is contained in:
parent
3baac14095
commit
a74ebaa1eb
@ -207,7 +207,7 @@ func (manager *Manager) SessionStart(w http.ResponseWriter, r *http.Request) (se
|
|||||||
|
|
||||||
session, err = manager.provider.SessionRead(sid)
|
session, err = manager.provider.SessionRead(sid)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errs
|
return nil, err
|
||||||
}
|
}
|
||||||
cookie := &http.Cookie{
|
cookie := &http.Cookie{
|
||||||
Name: manager.config.CookieName,
|
Name: manager.config.CookieName,
|
||||||
|
Loading…
Reference in New Issue
Block a user