Skip to content

Commit

Permalink
Tweak UPS delivery estimate code
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthaeusHarris committed Mar 15, 2015
1 parent 85e1e9d commit 42d5ab9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ module.exports = {
return "Delivered."
}
} catch(e) {
return "Delivery date unavailable<br />" + e.message;
try {
return package.lastResponse.Shipment.ScheduledDeliveryDate;
} catch(e) {
return "Delivery date unavailable<br />" + e.message;
}
}
break;
case "fedex":
Expand Down

0 comments on commit 42d5ab9

Please sign in to comment.