badmfck-api-server 1.1.5 → 1.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -133,11 +133,13 @@ class APIService extends BaseService_1.BaseService {
133
133
  result = await i.execute(httpRequest);
134
134
  }
135
135
  catch (e) {
136
+ if (this.options.onError)
137
+ this.options.onError(e);
136
138
  this.sendResponse(res, {
137
139
  httpStatus: 500,
138
140
  error: {
139
141
  code: 10002,
140
- message: "Internal server error"
142
+ message: "Internal server error",
141
143
  }
142
144
  }, tme, ep, log);
143
145
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "badmfck-api-server",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "Simple API http server based on express",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",