koatty_exception
Advanced tools
Comparing version 1.4.1 to 1.4.2
@@ -5,2 +5,9 @@ # Changelog | ||
### [1.4.2](https://github.com/koatty/koatty_exception/compare/v1.4.1...v1.4.2) (2024-03-15) | ||
### Bug Fixes | ||
* code非正常值导致grpc无输出 ([3bfabd1](https://github.com/koatty/koatty_exception/commit/3bfabd1a60dc6454b3dd7c3b05bc87d86806e81c)) | ||
### [1.4.1](https://github.com/koatty/koatty_exception/compare/v1.4.0...v1.4.1) (2024-03-15) | ||
@@ -7,0 +14,0 @@ |
/*! | ||
* @Author: richen | ||
* @Date: 2024-03-15 10:34:22 | ||
* @Date: 2024-03-15 10:45:29 | ||
* @License: BSD (3-Clause) | ||
@@ -5,0 +5,0 @@ * @Copyright (c) - <richenlin(at)gmail.com> |
/*! | ||
* @Author: richen | ||
* @Date: 2024-03-15 10:34:06 | ||
* @Date: 2024-03-15 10:45:17 | ||
* @License: BSD (3-Clause) | ||
@@ -651,2 +651,3 @@ * @Copyright (c) - <richenlin(at)gmail.com> | ||
super(message); | ||
this.status = 500; | ||
this.code = 1; | ||
@@ -741,3 +742,3 @@ this.setCode(code); | ||
// http status convert to grpc status | ||
if (!this.code) { | ||
if (this.code < 2) { | ||
this.code = StatusCodeConvert(ctx.status); | ||
@@ -744,0 +745,0 @@ } |
{ | ||
"name": "koatty_exception", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "Exception handler for koatty.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
{ | ||
"name": "koatty_exception", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "Exception handler for koatty.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
103104
2118