Skip to content

Instantly share code, notes, and snippets.

@msabramo
Created December 19, 2011 20:55
Show Gist options
  • Select an option

  • Save msabramo/1498819 to your computer and use it in GitHub Desktop.

Select an option

Save msabramo/1498819 to your computer and use it in GitHub Desktop.
marca@web01:/www/marca/RC_20111215$ svn diff -c 88572
Index: Chegg.Business/ReturnPrintout.php
===================================================================
--- Chegg.Business/ReturnPrintout.php (revision 88571)
+++ Chegg.Business/ReturnPrintout.php (revision 88572)
@@ -204,14 +204,17 @@
$labelImages = $upsLabel->generateLabel();
if (!is_array($labelImages))
{
+ error_log(__FILE__ . ":" . __LINE__ . " - \$labelImages was not an array; \$labelImages = " . print_r($labelImages, true));
throw new Exception('Could not generate labels - $labelImages was not an array');
}
if (!array_key_exists('shipping_label_gif', $labelImages))
{
+ error_log(__FILE__ . ":" . __LINE__ . " - \$labelImages array did not have a shipping_label_gif key; \$labelImages = " . print_r($labelImages, true));
throw new Exception('Could not generate labels - $labelImages array did not have a shipping_label_gif key');
}
if (!array_key_exists('tracking_barcode', $labelImages))
{
+ error_log(__FILE__ . ":" . __LINE__ . " - \$labelImages array did not have a tracking_barcode key; \$labelImages = " . print_r($labelImages, true));
throw new Exception('Could not generate labels - $labelImages array did not have a tracking_barcode key');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment