Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 9c62b47

Browse files
committed
Improves exception message
1 parent 3b82b2b commit 9c62b47

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Adapter/PhpcrOdmAdapter.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,12 @@ private function migrateGenericToAutoRoute(Generic $document, $contentDocument,
249249

250250
if (!$autoRoute instanceof $autoRouteClassName) {
251251
throw new \RuntimeException(
252-
'Something went wrong converting Generic node into an AutoRouteInterface node.'
252+
sprintf(
253+
'Failed to migrate migrate existing, non-managed, PHPCR node at "%s" to a managed document ' .
254+
'implementing the AutoRouteInterface. It is an instance of "%s".',
255+
$document->getId(),
256+
get_class($autoRoute)
257+
)
253258
);
254259
}
255260

0 commit comments

Comments
 (0)