mirror of
https://github.com/retailcrm/prestashop-module.git
synced 2025-04-11 12:50:55 +00:00
Added saving builder errors in orders export
This commit is contained in:
parent
c5828e33a2
commit
efd3ae0e40
1 changed files with 10 additions and 0 deletions
|
@ -184,8 +184,18 @@ class RetailcrmExport
|
|||
try {
|
||||
$orders[] = $orderBuilder->buildOrderWithPreparedCustomer();
|
||||
} catch (Exception $exception) {
|
||||
RetailcrmExportOrdersHelper::updateExportState(
|
||||
$record['id_order'],
|
||||
null,
|
||||
[$exception->getMessage()]
|
||||
);
|
||||
self::handleError($record['id_order'], $exception);
|
||||
} catch (Error $exception) {
|
||||
RetailcrmExportOrdersHelper::updateExportState(
|
||||
$record['id_order'],
|
||||
null,
|
||||
[$exception->getMessage()]
|
||||
);
|
||||
self::handleError($record['id_order'], $exception);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue