mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2024-11-29 08:56:52 +00:00
5741802c25
- created `getErrorMessage` function which takes in an error string or any type of error object and returns the correct error message - replaced `error.message` with `getErrorMessage` since `error` could be a string in some cases - merged sendNotificationForError.ts with ErrorHandlingUtils.ts - some minor refactoring In part 2, I will make the following changes: - Make `Logger.logError` function take an error message string instead of an error object. This will reduce some redundancy where the `getErrorMessage` function is being called twice (the error object passed by the caller is already an error message). - Update every `TelemetryProcessor.traceFailure` call to make sure we pass in an error message instead of an error object since we stringify the data we send. |
||
---|---|---|
.. | ||
__snapshots__ | ||
dataAccess | ||
ArrayHashMap.ts | ||
Constants.ts | ||
CosmosClient.test.ts | ||
CosmosClient.ts | ||
DataAccessUtilityBase.test.ts | ||
DataAccessUtilityBase.ts | ||
DeleteFeedback.ts | ||
DocumentClientUtilityBase.ts | ||
EditableUtility.ts | ||
EnvironmentUtility.ts | ||
ErrorHandlingUtils.ts | ||
ErrorParserUtility.test.ts | ||
ErrorParserUtility.ts | ||
HashMap.test.ts | ||
HashMap.ts | ||
HeadersUtility.test.ts | ||
HeadersUtility.ts | ||
IteratorUtilities.test.ts | ||
IteratorUtilities.ts | ||
Logger.test.ts | ||
Logger.ts | ||
MessageHandler.test.ts | ||
MessageHandler.ts | ||
MongoProxyClient.test.ts | ||
MongoProxyClient.ts | ||
MongoUtility.ts | ||
ObjectCache.test.ts | ||
ObjectCache.ts | ||
PortalNotifications.ts | ||
QueriesClient.ts | ||
Splitter.ts | ||
ThemeUtility.ts | ||
UrlUtility.ts |