Fixed #14093 -- Improved error message in the cache session backend.
Thanks stumbles for the patch.
This commit is contained in:
parent
785bf0d5a0
commit
98032f67c7
|
@ -43,7 +43,9 @@ class SessionStore(SessionBase):
|
||||||
continue
|
continue
|
||||||
self.modified = True
|
self.modified = True
|
||||||
return
|
return
|
||||||
raise RuntimeError("Unable to create a new session key.")
|
raise RuntimeError(
|
||||||
|
"Unable to create a new session key. "
|
||||||
|
"It is likely that the cache is unavailable.")
|
||||||
|
|
||||||
def save(self, must_create=False):
|
def save(self, must_create=False):
|
||||||
if must_create:
|
if must_create:
|
||||||
|
|
Loading…
Reference in New Issue