You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by ja...@apache.org on 2019/09/10 18:18:02 UTC
[openwhisk-package-cloudant] branch master updated: exit with
failure for db and redis connection errors on startup (#214)
This is an automated email from the ASF dual-hosted git repository.
japetrsn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk-package-cloudant.git
The following commit(s) were added to refs/heads/master by this push:
new a1096a6 exit with failure for db and redis connection errors on startup (#214)
a1096a6 is described below
commit a1096a6f01e66eae871d732986098c30fe16dd7a
Author: Jason Peterson <ja...@us.ibm.com>
AuthorDate: Tue Sep 10 14:17:57 2019 -0400
exit with failure for db and redis connection errors on startup (#214)
---
provider/app.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/provider/app.js b/provider/app.js
index ad37994..1fe48c0 100644
--- a/provider/app.js
+++ b/provider/app.js
@@ -241,7 +241,8 @@ function init(server) {
}
})
.catch(err => {
- logger.error(method, 'an error occurred creating database:', err);
+ logger.error(method, 'The following connection error occurred:', err);
+ process.exit(1);
});
}