chyz 2.0.0-rc.38 → 2.0.0-rc.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.
Files changed (2) hide show
  1. package/BaseChyz.js +1 -1
  2. package/package.json +1 -1
package/BaseChyz.js CHANGED
@@ -404,7 +404,7 @@ class BaseChyz {
404
404
  instance.afterAction(route, req, res);
405
405
  }
406
406
  catch (e) {
407
- if (e instanceof Error) {
407
+ if (e instanceof base_1.BaseError) {
408
408
  BaseChyz.error(e);
409
409
  // @ts-ignore
410
410
  res.status(e.statusCode || 500);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chyz",
3
- "version": "2.0.0-rc.38",
3
+ "version": "2.0.0-rc.39",
4
4
  "description": "Nodejs Micro service Framework",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",