vona-core 5.1.37 → 5.1.39
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/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/utils/util.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/lib/utils/util.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -306,6 +306,7 @@ class AppUtil extends BeanSimple {
|
|
|
306
306
|
createError(data, returnObject) {
|
|
307
307
|
const error = returnObject ? {} : new Error();
|
|
308
308
|
error.code = data.code !== undefined ? data.code : 500;
|
|
309
|
+
if (data.status !== undefined) error.status = data.status;
|
|
309
310
|
if (data.message && typeof data.message === 'object') {
|
|
310
311
|
error.message = JSON.stringify(data.message, null, 2);
|
|
311
312
|
} else {
|