badmfck-api-server 4.0.84 → 4.0.85
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.
|
@@ -116,7 +116,9 @@ class MicroserviceHost extends BaseService_1.BaseService {
|
|
|
116
116
|
return result;
|
|
117
117
|
}
|
|
118
118
|
catch (e) {
|
|
119
|
-
const
|
|
119
|
+
const errText = e instanceof Error ? e.message : "unknown error: " + e;
|
|
120
|
+
const errStack = e instanceof Error && e.stack ? e.stack : "";
|
|
121
|
+
const err = DefaultErrors_1.ErrorUtils.isError(e) ? e : { ...DefaultErrors_1.default.INTERNAL_ERROR, details: errText, stack: errStack };
|
|
120
122
|
job.status = "completed";
|
|
121
123
|
job.result = err;
|
|
122
124
|
return job.result;
|