Skip to content

Commit

Permalink
Added exception to event data
Browse files Browse the repository at this point in the history
It's useful to get the exception message for a better error handling in an observer.
  • Loading branch information
cmuench committed Sep 10, 2015
1 parent 73aa5bf commit e40c270
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/code/Magento/Quote/Model/QuoteManagement.php
Original file line number Diff line number Diff line change
Expand Up @@ -467,8 +467,9 @@ protected function submitQuote(QuoteEntity $quote, $orderData = [])
$this->eventManager->dispatch(
'sales_model_service_quote_submit_failure',
[
'order' => $order,
'quote' => $quote
'order' => $order,
'quote' => $quote,
'exception' => $e
]
);
throw $e;
Expand Down

0 comments on commit e40c270

Please sign in to comment.