From 34d9ebd6823ab91387e159f4b68db6d52b696b72 Mon Sep 17 00:00:00 2001 From: Brandon Date: Sat, 24 Aug 2024 18:14:04 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=91=E2=80=8D=F0=9F=92=BB=20Append=20th?= =?UTF-8?q?e=20original=20exception=20message=20to=20the=20skipped=20provi?= =?UTF-8?q?der=20exception?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Roots/Acorn/Application.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Roots/Acorn/Application.php b/src/Roots/Acorn/Application.php index ce1c7778..d15df77c 100644 --- a/src/Roots/Acorn/Application.php +++ b/src/Roots/Acorn/Application.php @@ -344,7 +344,7 @@ protected function skipProvider($provider, Throwable $e): ServiceProvider $error = get_class($e); $message = [ BindingResolutionException::class => "Skipping provider [{$providerName}] because it requires a dependency that cannot be found.", - ][$error] ?? "Skipping provider [{$providerName}] because it encountered an error [{$error}]."; + ][$error] ?? "Skipping provider [{$providerName}] because it encountered an error [{$error}]: {$e->getMessage()}"; $e = new SkipProviderException($message, 0, $e); }