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])