mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-21 09:51:11 +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:
@@ -245,7 +245,7 @@ export default class Main {
|
||||
);
|
||||
},
|
||||
(error: any) => {
|
||||
deferred.reject(`Failed to generate encrypted token: ${JSON.stringify(error)}`);
|
||||
deferred.reject(`Failed to generate encrypted token: ${error.message}`);
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user