Skip to content

Commit 373a9cb

Browse files
authored
Merge pull request #1722 from algolia/fix/MAGE-1228-invalid-creds-on-reindex-sku
MAGE-1228 Fix error on invalid creds when using manual SKU indexer
2 parents 06386c0 + 9c05f82 commit 373a9cb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Controller/Adminhtml/Reindex/Save.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,15 @@ public function execute()
100100
[$e->getProduct()->getName(), $e->getProduct()->getSku()]
101101
)
102102
);
103+
} catch (\Exception $e) {
104+
$this->messageManager->addExceptionMessage(
105+
$e,
106+
__(
107+
'Unable to index product(s) due to the following error: %1',
108+
$e->getMessage()
109+
)
110+
);
111+
break;
103112
}
104113
}
105114

0 commit comments

Comments
 (0)