Skip to content

Commit

Permalink
Catch errors during service instaniation (#5749)
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman authored Sep 7, 2023
1 parent 756647b commit 9dd5d67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Runtime/ServiceManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()]);
}
}

Expand Down

0 comments on commit 9dd5d67

Please sign in to comment.