Use fixed message

This commit is contained in:
Jake Barnby
2023-10-19 17:12:05 +13:00
parent 354211950f
commit b5cdbb50c7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -467,7 +467,7 @@ return [
],
Exception::DATABASE_TIMEOUT => [
'name' => Exception::DATABASE_TIMEOUT,
'description' => 'Database timed out.',
'description' => 'Database timed out. Try adjusting your queries or adding an index.',
'code' => 408
],
+1 -1
View File
@@ -694,7 +694,7 @@ App::error()
$code = $error->getCode();
$message = $error->getMessage();
} elseif ($error instanceof Utopia\Database\Exception\Timeout) {
$error = new AppwriteException(AppwriteException::DATABASE_TIMEOUT, $message, previous: $error);
$error = new AppwriteException(AppwriteException::DATABASE_TIMEOUT, previous: $error);
$code = $error->getCode();
$message = $error->getMessage();
}