5htp-core 0.5.9-4 → 0.5.9-5

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "5htp-core",
3
3
  "description": "Convenient TypeScript framework designed for Performance and Productivity.",
4
- "version": "0.5.9-4",
4
+ "version": "0.5.9-5",
5
5
  "author": "Gaetan Le Gac (https://github.com/gaetanlegac)",
6
6
  "repository": "git://github.com/gaetanlegac/5htp-core.git",
7
7
  "license": "MIT",
@@ -157,10 +157,14 @@ export abstract class Application<
157
157
 
158
158
  // Satrt services
159
159
  for (const serviceId in this.registered) {
160
-
161
- const service = this.registered[serviceId];
162
- const instance = service.start();
163
- this[service.name] = instance.getServiceInstance();
160
+ try {
161
+ const service = this.registered[serviceId];
162
+ const instance = service.start();
163
+ this[service.name] = instance.getServiceInstance();
164
+ } catch (error) {
165
+ console.error("Error while starting service", serviceId, service, error);
166
+ throw error;
167
+ }
164
168
  }
165
169
  }
166
170