Skip to content

Commit

Permalink
Missing sprintf() and OrderNumber in exception
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-paterson committed Sep 3, 2014
1 parent fe0fa93 commit 7bf2412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Jh/DataImportMagento/Writer/OrderStatusWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ public function validateItemsToBeRefunded(\Mage_Sales_Model_Order $order, array
foreach ($items as $item) {
$orderItem = $order->getItemsCollection()->getItemByColumnValue('sku', $item['sku']);
if (null === $orderItem) {
throw new WriterException('Item with SKU: "%s" does not exist in Order: "%s"', $item['sku']);
throw new WriterException(sprintf('Item with SKU: "%s" does not exist in Order: "%s"', $item['sku'], $order->getIncrementId()));
}

$return[$orderItem->getId()] = $item['qtyCancelled'];
Expand Down

0 comments on commit 7bf2412

Please sign in to comment.