mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-20 01:11:25 +00:00
feat: Enhance UploadItemsPane with error handling and status icons for file uploads (#2133)
This commit is contained in:
@@ -1122,6 +1122,9 @@ export default class Collection implements ViewModels.Collection {
|
||||
stats.numSucceeded++;
|
||||
} else if (response.statusCode === 429) {
|
||||
documentsToAttempt.push(attemptedDocuments[index]);
|
||||
} else if (response.statusCode === 409) {
|
||||
stats.numFailed++;
|
||||
stats.errors.push(`Document with id ${attemptedDocuments[index].id} already exists.`);
|
||||
} else {
|
||||
stats.numFailed++;
|
||||
stats.errors.push(JSON.stringify(response.resourceBody));
|
||||
|
||||
Reference in New Issue
Block a user