Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Passing options via function #4

Merged
merged 1 commit into from

2 participants

@wlaurance

while still allowing config/vidStreamer.json to be used

Closes #3

@meloncholy meloncholy merged commit 6d318f2 into meloncholy:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 14, 2012
  1. @wlaurance

    add try/catch to config file

    wlaurance authored
    See #3
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 1 deletion.
  1. +6 −1 index.js
View
7 index.js
@@ -11,7 +11,12 @@
var fs = require("fs");
var url = require("url");
var events = require("events");
-var settings = require("konphyg")(__dirname + "/config/")("vidStreamer");
+var settings = {};
+try {
+ settings = require("konphyg")(__dirname + "/config/")("vidStreamer");
+} catch (e) {
+ console.error(e);
+}
var handler = new events.EventEmitter();
Something went wrong with that request. Please try again.