mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 15:30:55 +00:00
Merge pull request #2278 from mgenov/err_fix
beego/session: return proper error when session is not found
This commit is contained in:
commit
27c59a8017
@ -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