Make getCollectionDataUsageSize call fail gracefully (#434)

This commit is contained in:
victor-meng 2021-02-08 16:02:02 -08:00 committed by GitHub
parent 87f7dd2230
commit 81fd442fad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ export const getCollectionUsageSizeInKB = async (databaseName: string, container
return dataUsageSizeInKb + indexUsageSizeInKb;
} catch (error) {
handleError(error, "getCollectionUsageSize");
throw error;
return undefined;
}
};