Skip to content

Commit 01c4add

Browse files
authored
Merge pull request #1723 from algolia/fix/MAGE-1228-invalid-creds-on-reindex-sku-3.14
MAGE-1228 Fix error on invalid creds when using manual SKU indexer (3.14.x)
2 parents 2a7cefe + 63b2a62 commit 01c4add

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
@@ -120,6 +120,15 @@ public function execute()
120120
[$e->getProduct()->getName(), $e->getProduct()->getSku()]
121121
)
122122
);
123+
} catch (\Exception $e) {
124+
$this->messageManager->addExceptionMessage(
125+
$e,
126+
__(
127+
'Unable to index product(s) due to the following error: %1',
128+
$e->getMessage()
129+
)
130+
);
131+
break;
123132
}
124133
}
125134

0 commit comments

Comments
 (0)