mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Use 500 code for pool too small exception
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user