delivery-tracker
Advanced tools
Comparing version 2.5.6 to 2.5.7
@@ -0,1 +1,4 @@ | ||
# 2.5.7 | ||
* add an exception logic for internal server error in SICEPAT. | ||
# 2.5.6 | ||
@@ -2,0 +5,0 @@ * add an exception logic in SICEPAT. |
@@ -143,4 +143,7 @@ 'use strict' | ||
try { | ||
if (!body.sicepat) { // internal server error | ||
return cb(tracker.error(body.message)) | ||
} | ||
if (body.sicepat.status.code !== 200) { | ||
return cb(body.sicepat.status.description) | ||
return cb(tracker.error(body.sicepat.status.description)) | ||
} | ||
@@ -147,0 +150,0 @@ var result = handler.parser.trace(body.sicepat.result, number) |
{ | ||
"name": "delivery-tracker", | ||
"version": "2.5.6", | ||
"version": "2.5.7", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "egg", |
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
81073
2309