mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fail with error rather than silently on storage init problems.
This commit is contained in:
parent
55679694c9
commit
f331d906b4
3
red.js
3
red.js
@ -184,6 +184,9 @@ RED.start().then(function() {
|
||||
} else {
|
||||
util.log('[red] Running in headless mode');
|
||||
}
|
||||
}).otherwise(function(err) {
|
||||
util.log("[red] Failed to start server:");
|
||||
util.log(err.stack);
|
||||
});
|
||||
|
||||
|
||||
|
@ -89,6 +89,8 @@ function start() {
|
||||
redNodes.loadFlows();
|
||||
});
|
||||
comms.start();
|
||||
}).otherwise(function(err) {
|
||||
defer.reject(err);
|
||||
});
|
||||
|
||||
return defer.promise;
|
||||
|
Loading…
Reference in New Issue
Block a user