feat(nbstore): blob storage adapt to new error type (#11005)

This commit is contained in:
EYHN authored and GitHub committed 2025-03-21 16:05:30 +08:00
1 parent 8109c718c7
commit edcf6a967a
1 file changed
+4 -1
@@ -79,9 +79,12 @@ export class CloudBlobStorage extends BlobStorageBase {
});
} catch (err) {
const userFriendlyError = UserFriendlyError.fromAny(err);
if (userFriendlyError.is('BLOB_QUOTA_EXCEEDED')) {
if (userFriendlyError.is('STORAGE_QUOTA_EXCEEDED')) {
throw new OverCapacityError();
}
if (userFriendlyError.is('BLOB_QUOTA_EXCEEDED')) {
throw new OverSizeError();
}
if (userFriendlyError.is('CONTENT_TOO_LARGE')) {
throw new OverSizeError();
}