index: add explicit error message for missing lib/server.js

This commit is contained in:
calzoneman 2015-10-06 21:25:27 -07:00
parent 9f4461a779
commit 7f62e14045
2 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,10 @@
var Server = require("./lib/server");
try {
var Server = require("./lib/server");
} catch (err) {
console.error('FATAL: Failed to require() lib/server.js');
console.error('Have you run `npm run build-server` yet to generate it?');
process.exit(1);
}
var Config = require("./lib/config");
var Logger = require("./lib/logger");
require("source-map-support").install();

View File

@ -2,7 +2,7 @@
"author": "Calvin Montgomery",
"name": "CyTube",
"description": "Online media synchronizer and chat",
"version": "3.11.0",
"version": "3.11.1",
"repository": {
"url": "http://github.com/calzoneman/sync"
},