mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-17 12:33:06 +00:00
Throw RuntimeException instead of Exception when no resource is found in ScheduledTaskJob
This commit is contained in:
@@ -39,7 +39,7 @@ class ScheduledTaskJob implements ShouldQueue
|
|||||||
} else if ($application = $task->application()->first()) {
|
} else if ($application = $task->application()->first()) {
|
||||||
$this->resource = $application;
|
$this->resource = $application;
|
||||||
} else {
|
} else {
|
||||||
throw new \Exception('ScheduledTaskJob failed: No resource found.');
|
throw new \RuntimeException('ScheduledTaskJob failed: No resource found.');
|
||||||
}
|
}
|
||||||
$this->team = Team::find($task->team_id);
|
$this->team = Team::find($task->team_id);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user