diff --git a/app/init.php b/app/init.php index 7fd6acdcd1..af87960325 100644 --- a/app/init.php +++ b/app/init.php @@ -1137,7 +1137,7 @@ function getWorkerPoolSize(): int $workerConnections = $maxConnections - $reservedConnections; if ($workerCount > $workerConnections) { - throw new \Exception('Worker pool size is too small. Increase the number of allowed database connections or decrease the number of workers.'); + throw new \Exception('Worker pool size is too small. Increase the number of allowed database connections or decrease the number of workers.', 500); } return (int)($workerConnections / $workerCount);