Skip to content

Commit

Permalink
Add a warning if express isn't installed when running the demo
Browse files Browse the repository at this point in the history
  • Loading branch information
aredridel committed May 29, 2011
1 parent 03f1214 commit 8229584
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/demo.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#!/usr/bin/env node

var irc = require('ircd')
var express = require('express')
try {
var express = require('express')
} catch(e) {
console.log("You need express to run this demo. Install it with `npm install express`")
process.exit()
}

var ircd = irc.createDaemon('test.0x42.net')
var app = express.createServer()
Expand Down

0 comments on commit 8229584

Please sign in to comment.