mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-28 22:24:23 +00:00
Fix error handling in DE (#294)
- Replaced `JSON.stringify(error)` with `error.message` - Created `ErrorHandlingUtils` and moved all error logging actions in there
This commit is contained in:
@@ -93,7 +93,7 @@ function createDocumentsFromFile(fileName: string, documentContent: string): voi
|
||||
})
|
||||
.catch(error => {
|
||||
console.error(error);
|
||||
recordUploadDetailErrorForFile(fileName, JSON.stringify(error));
|
||||
recordUploadDetailErrorForFile(fileName, error.message);
|
||||
numUploadsFailed++;
|
||||
})
|
||||
.finally(() => {
|
||||
|
||||
Reference in New Issue
Block a user