mirror of https://github.com/calzoneman/sync.git
index: add explicit error message for missing lib/server.js
This commit is contained in:
parent
9f4461a779
commit
7f62e14045
8
index.js
8
index.js
|
@ -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 Config = require("./lib/config");
|
||||||
var Logger = require("./lib/logger");
|
var Logger = require("./lib/logger");
|
||||||
require("source-map-support").install();
|
require("source-map-support").install();
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"author": "Calvin Montgomery",
|
"author": "Calvin Montgomery",
|
||||||
"name": "CyTube",
|
"name": "CyTube",
|
||||||
"description": "Online media synchronizer and chat",
|
"description": "Online media synchronizer and chat",
|
||||||
"version": "3.11.0",
|
"version": "3.11.1",
|
||||||
"repository": {
|
"repository": {
|
||||||
"url": "http://github.com/calzoneman/sync"
|
"url": "http://github.com/calzoneman/sync"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue