@be-link/pos-cli-nodejs 0.0.63 → 0.0.65
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/package.json +1 -1
- package/pos/http.js +1 -1
- package/pos/modules/orderQuery/types.d.ts +2 -0
package/package.json
CHANGED
package/pos/http.js
CHANGED
|
@@ -24,7 +24,7 @@ async function callApi(url, ...request) {
|
|
|
24
24
|
if (axiosError.response) {
|
|
25
25
|
const response = axiosError.response;
|
|
26
26
|
const data = response.data;
|
|
27
|
-
throw new PosError_1.default(data
|
|
27
|
+
throw new PosError_1.default(data.message || 'Pos Error', response.status);
|
|
28
28
|
}
|
|
29
29
|
console.error(`POS 未知异常: ${axiosError.message}`, error.stack);
|
|
30
30
|
throw error;
|