Skip to content

Commit

Permalink
Throw error when lost express or connnect
Browse files Browse the repository at this point in the history
  • Loading branch information
arronzhang committed Dec 16, 2011
1 parent eac2b1c commit 9b52bb4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ function loop () {
*/

var SessionStore = module.exports = function SessionStore( col, options ) {

if( Store === loop ) {
throw new Error("Before using SessionStore, You should install connect or express into your project.");
}
options = options || {};
Store.call( this, options );

Expand Down

0 comments on commit 9b52bb4

Please sign in to comment.