From 423778708286285067332fdddb35381cde9c9f30 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 2 Jan 2013 04:46:01 -0500 Subject: [PATCH] add an assert --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 2d8828b..60d885e 100644 --- a/index.js +++ b/index.js @@ -17,7 +17,7 @@ exports.createClient = createClient; function createClient(options) { // defaults - options = options || {}; + assert.ok(options, "options is required"); var port = options.port || 25565; var host = options.host || 'localhost'; assert.ok(options.username, "username is required");