svn commit: r419608 - /incubator/ofbiz/trunk/applications/product/src/org/ofbiz/shipment/thirdparty/dhl/DhlServices.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r419608 - /incubator/ofbiz/trunk/applications/product/src/org/ofbiz/shipment/thirdparty/dhl/DhlServices.java

sichen
Author: sichen
Date: Thu Jul  6 09:28:42 2006
New Revision: 419608

URL: http://svn.apache.org/viewvc?rev=419608&view=rev
Log:
Better error messages when the DHL schedule shipping service fails

Modified:
    incubator/ofbiz/trunk/applications/product/src/org/ofbiz/shipment/thirdparty/dhl/DhlServices.java

Modified: incubator/ofbiz/trunk/applications/product/src/org/ofbiz/shipment/thirdparty/dhl/DhlServices.java
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/product/src/org/ofbiz/shipment/thirdparty/dhl/DhlServices.java?rev=419608&r1=419607&r2=419608&view=diff
==============================================================================
--- incubator/ofbiz/trunk/applications/product/src/org/ofbiz/shipment/thirdparty/dhl/DhlServices.java (original)
+++ incubator/ofbiz/trunk/applications/product/src/org/ofbiz/shipment/thirdparty/dhl/DhlServices.java Thu Jul  6 09:28:42 2006
@@ -799,8 +799,8 @@
         Element labelElement = UtilXml.firstChildElement(shipmentElement, "Label");
         String encodedImageString = UtilXml.childElementValue(labelElement, "Image");
         if (encodedImageString == null) {
-            Debug.logError("Cannot find response DHL shipment label.", module);
-            // TODO VOID
+            Debug.logError("Cannot find response DHL shipment label.  Rate response document is: " + rateResponseString, module);
+            return ServiceUtil.returnError("Cannot get response DHL shipment label for shipment package route segment " + shipmentPackageRouteSeg + ".  DHL response is: " + rateResponseString);
         }
         
         // TODO: this is a temporary hack to replace the newlines so that Base64 likes the input This is NOT platform independent