We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b2bbc7 commit 199887dCopy full SHA for 199887d
lib/internal/Magento/Framework/Setup/Patch/PatchApplier.php
@@ -164,7 +164,17 @@ public function applyDataPatch($moduleName = null)
164
$this->moduleDataSetup->getConnection()->commit();
165
} catch (\Exception $e) {
166
$this->moduleDataSetup->getConnection()->rollBack();
167
- throw new Exception(new Phrase($e->getMessage()));
+ throw new Exception(
168
+ new Phrase(
169
+ 'Unable to apply data patch %1 for module %2. Original exception message: %3',
170
+ [
171
+ get_class($dataPatch),
172
+ $moduleName,
173
+ $e->getMessage()
174
+ ]
175
+ ),
176
+ $e
177
+ );
178
} finally {
179
unset($dataPatch);
180
}
0 commit comments