Skip to content

Commit c81fc92

Browse files
CAFernandesCopilot
andauthored
Update src/Providers/ExtensionManager.php
Co-authored-by: Copilot <[email protected]>
1 parent 424dcf6 commit c81fc92

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Providers/ExtensionManager.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ public function register(string $name, callable $extension): void
5959
// Execute the extension to register services
6060
try {
6161
$extension($this->app);
62-
} catch (\Exception) {
62+
} catch (\Exception $e) {
63+
// Log the exception details for debugging
64+
error_log("Extension '{$name}' failed to execute: " . $e->getMessage());
65+
error_log($e->getTraceAsString());
6366
// If extension fails, still register it but mark as disabled
6467
$this->extensionStates[$name] = false;
6568
}

0 commit comments

Comments
 (0)