Skip to content

Commit 32189da

Browse files
committed
Merge remote-tracking branch 'origin/AC-9027' into spartans_pr_07112023
2 parents 1f0b3e0 + 397b759 commit 32189da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/internal/Magento/Framework/Setup/Patch/PatchApplier.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,12 @@ public function applySchemaPatch($moduleName = null)
248248
}
249249
}
250250
} catch (\Exception $e) {
251+
$schemaPatchClass = is_object($schemaPatch) ? get_class($schemaPatch) : $schemaPatch;
251252
throw new SetupException(
252253
new Phrase(
253254
'Unable to apply patch %1 for module %2. Original exception message: %3',
254255
[
255-
get_class($schemaPatch),
256+
$schemaPatchClass,
256257
$moduleName,
257258
$e->getMessage()
258259
]

0 commit comments

Comments
 (0)