1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Merge pull request #292 from hindessm/handle-storage-error

Fail with error rather than silently on storage init problems.
This commit is contained in:
Nick O'Leary 2014-07-23 23:05:39 +01:00
commit 38390c6285
2 changed files with 5 additions and 0 deletions

3
red.js
View File

@ -184,6 +184,9 @@ RED.start().then(function() {
} else { } else {
util.log('[red] Running in headless mode'); util.log('[red] Running in headless mode');
} }
}).otherwise(function(err) {
util.log("[red] Failed to start server:");
util.log(err.stack);
}); });

View File

@ -89,6 +89,8 @@ function start() {
redNodes.loadFlows(); redNodes.loadFlows();
}); });
comms.start(); comms.start();
}).otherwise(function(err) {
defer.reject(err);
}); });
return defer.promise; return defer.promise;