Skip to content

Commit 039c3b2

Browse files
authored
Display raw drupal_root parameter for better debugging (#631)
This makes it easier to debug the drupal_root parameter for discovery issues.
1 parent 258bc75 commit 039c3b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Drupal/DrupalAutoloader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function register(Container $container): void
6565
$drupalRoot = $finder->getDrupalRoot();
6666
$drupalVendorRoot = $finder->getVendorDir();
6767
if (! (bool) $drupalRoot || ! (bool) $drupalVendorRoot) {
68-
throw new \RuntimeException("Unable to detect Drupal at $drupalRoot");
68+
throw new \RuntimeException("Unable to detect Drupal at {$drupalParams['drupal_root']}");
6969
}
7070

7171
$this->drupalRoot = $drupalRoot;

0 commit comments

Comments
 (0)