mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-19 17:01:13 +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:
@@ -423,7 +423,7 @@ export class GitHubContentProvider implements IContentProvider {
|
||||
request: {},
|
||||
status: error.errno,
|
||||
response: error,
|
||||
responseText: JSON.stringify(error),
|
||||
responseText: error.message,
|
||||
responseType: "json"
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user