add error handling when calling createStep function
This commit is contained in:
parent
636a289d5b
commit
806bc993da
1 changed files with 5 additions and 1 deletions
|
|
@ -7,7 +7,11 @@ class ProjectPage extends NotificationsPage {
|
|||
$steps = [];
|
||||
|
||||
foreach ($this->children() as $child) {
|
||||
$steps[] = $this->createStep($child);
|
||||
try {
|
||||
$steps[] = $this->createStep($child);
|
||||
} catch (\Throwable $th) {
|
||||
//throw $th;
|
||||
}
|
||||
}
|
||||
|
||||
usort($steps, fn($a, $b) => $a['index'] <=> $b['index']);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue