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;
|