From 95fb0fba7c194feaa3e6e743ad70ceff0cb31e4f Mon Sep 17 00:00:00 2001 From: Screeny Date: Tue, 3 Dec 2013 15:20:14 +0100 Subject: [PATCH] emit error on store-error this could've saved me some work. next time i'll better check if redis is online. --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 46c1b43..fa363c3 100644 --- a/lib/index.js +++ b/lib/index.js @@ -45,7 +45,7 @@ function authorize(options) { auth.store.get(data.sessionID, function(err, session){ if(err) - return auth.fail(data, 'Error in session store.', true, accept); + return auth.fail(data, 'Error in session store:\n' + err.message, true, accept); if(!session) return auth.fail(data, 'No session found', false, accept); if(!session[auth.passport._key])