Fixed #14093 -- Improved error message in the cache session backend.

Thanks stumbles for the patch.
This commit is contained in:
Aymeric Augustin 2012-10-28 12:40:10 +01:00
parent 785bf0d5a0
commit 98032f67c7
1 changed files with 3 additions and 1 deletions

View File

@ -43,7 +43,9 @@ class SessionStore(SessionBase):
continue
self.modified = True
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):
if must_create: