Try
dfssdfsfdsf
This commit is contained in:
1 parent
983b67e6fc
commit
89bc86b615
27 files changed
+2921
-408
No files matched your search
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Detect Appwrite errors when a collection/database resource is missing.
|
||||
*/
|
||||
export function isAppwriteCollectionMissing(err) {
|
||||
if (!err) return false
|
||||
const msg = typeof err.message === 'string' ? err.message : ''
|
||||
return (
|
||||
err.code === 404 ||
|
||||
err.type === 'collection_not_found' ||
|
||||
msg.includes('Collection with the requested ID')
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user