@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
|
-
|
|
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
|
|
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){
|