Use 500 code for pool too small exception

This commit is contained in:
Jake Barnby
2022-11-15 22:16:25 +13:00
parent 6e0c54a151
commit dc6c8d9b9a
+1 -1
View File
@@ -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);