mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Improve error messages in Database and TablesDB adapters
Co-authored-by: Meldiron <19310830+Meldiron@users.noreply.github.com>
This commit is contained in:
1 parent
14ccf84d23
commit
2694a0a769
2 files changed
+2
-2
No files matched your search
@@ -298,7 +298,7 @@ class TablesDB extends TimeLimit
|
||||
if (!is_null($data)) {
|
||||
$this->tablesDB->updateRow($this->databaseId, self::TABLE_ID, $data['$id'], ['count' => $value]);
|
||||
} else {
|
||||
throw new \Exception('Document Not Found');
|
||||
throw new \Exception('Unable to find abuse tracking row after race condition handling');
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -260,7 +260,7 @@ class Database extends TimeLimit
|
||||
'count' => $value,
|
||||
]));
|
||||
} else {
|
||||
throw new \Exception('Document Not Found');
|
||||
throw new \Exception('Unable to find abuse tracking document after race condition handling');
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user