Skip to content
This repository has been archived by the owner on Sep 18, 2020. It is now read-only.

Commit

Permalink
Catch no config correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ProbablePrime committed Feb 10, 2016
1 parent 4b9b9ac commit b254d6e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ var client = new Beam();

module.exports = function (extensionApi) {
nodecg = extensionApi;

if (!Object.keys(nodecg.bundleConfig).length) {
if(!nodecg.bundleConfig || !Object.keys(nodecg.bundleConfig).length) {
throw new Error('No config found in cfg/nodecg-beam.json, aborting!');
}

Expand Down

0 comments on commit b254d6e

Please sign in to comment.