diff --git a/src/Runtime/ServiceManager.php b/src/Runtime/ServiceManager.php index 5893b11b20..29a401bc60 100644 --- a/src/Runtime/ServiceManager.php +++ b/src/Runtime/ServiceManager.php @@ -329,8 +329,8 @@ public function instantiateServices(array $bootstrapCommandClasses, DrushContain // "*AwareInterface" used by the handler $this->inflect($drushContainer, $commandHandler); $commandHandlers[] = $commandHandler; - } catch (\Exception $e) { - $this->logger->debug("Cound not instantiate {class}: {message}", ['class' => $class, 'message' => $e->getMessage()]); + } catch (\Throwable $e) { + $this->logger->debug("Could not instantiate {class}: {message}", ['class' => $class, 'message' => $e->getMessage()]); } }