Skip to content

Commit

Permalink
WIP #217 added failure message on failed 'webgme start'
Browse files Browse the repository at this point in the history
  • Loading branch information
brollb committed Nov 9, 2017
1 parent 1e59a96 commit 7384aea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/webgme-start
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@ program
.parse(process.argv);

if (program.args.length === 0) { // action will not be called
manager.start(program, nop);
manager.start(program, err => {
if (err) {
process.exit(1);
}
});
}
2 changes: 2 additions & 0 deletions src/BaseManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,14 @@ BaseManager.prototype._start = function (root, callback) {
this._logger.write('Installing dependencies...');
npm.install(err => {
if (err) {
this._logger.error(`Could not install dependencies: ${err.message}`);
return callback(err);
}
if (!exists(webgmePath)) {
this._logger.write('Installing webgme...');
npm.install('webgme', err => {
if (err) {
this._logger.error(`Could not install webgme dependency: ${err.message}`);
return callback(err);
}
npm.start();
Expand Down

0 comments on commit 7384aea

Please sign in to comment.