1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 05:40:54 +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:
Miroslav Genov 2016-11-13 10:01:29 +02:00
parent 3baac14095
commit a74ebaa1eb

View File

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