mirror of
https://github.com/astaxie/beego.git
synced 2024-12-26 00:40:50 +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)
|
||||
if err != nil {
|
||||
return nil, errs
|
||||
return nil, err
|
||||
}
|
||||
cookie := &http.Cookie{
|
||||
Name: manager.config.CookieName,
|
||||
|
Loading…
Reference in New Issue
Block a user