From dc6c8d9b9ab01cddf265a93f043e8f7f409d51bc Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Tue, 15 Nov 2022 22:16:25 +1300 Subject: [PATCH] Use 500 code for pool too small exception --- app/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);