@reldens/server-utils 0.32.0 → 0.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -114,9 +114,16 @@ class AppServerFactory
114
114
  this.setupRateLimiting();
115
115
  this.setupRequestParsing();
116
116
  this.setupTrustedProxy();
117
- this.appServer = this.createServer();
117
+ try {
118
+ this.appServer = this.createServer();
119
+ } catch (error) {
120
+ this.error = {message: 'Server creation exception: ' + error.message};
121
+ return false;
122
+ }
118
123
  if(!this.appServer){
119
- this.error = {message: 'Failed to create app server'};
124
+ if(!this.error.message){
125
+ this.error = {message: 'The createServer() returned false - check certificate paths and permissions'};
126
+ }
120
127
  return false;
121
128
  }
122
129
  if(this.autoListen){
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@reldens/server-utils",
3
3
  "scope": "@reldens",
4
- "version": "0.32.0",
4
+ "version": "0.33.0",
5
5
  "description": "Reldens - Server Utils",
6
6
  "author": "Damian A. Pastorini",
7
7
  "license": "MIT",