@mongodb-js/compass-logging
Advanced tools
Comparing version 0.0.0-next-823f55a862f13d28437b87fb594450b2208c0d4f to 0.0.0-next-bfa0f33f79b0349abe5ad03576e17682f507fe04
@@ -81,3 +81,14 @@ "use strict"; | ||
if (typeof properties === 'function') { | ||
data.properties = await properties(); | ||
try { | ||
data.properties = await properties(); | ||
} | ||
catch (error) { | ||
emit(ipc, 'compass:track', { | ||
event: 'Error Fetching Attributes', | ||
properties: { | ||
event_name: event, | ||
}, | ||
}); | ||
return; | ||
} | ||
} | ||
@@ -84,0 +95,0 @@ emit(ipc, 'compass:track', data); |
@@ -16,3 +16,3 @@ { | ||
"homepage": "https://github.com/mongodb-js/compass", | ||
"version": "0.0.0-next-823f55a862f13d28437b87fb594450b2208c0d4f", | ||
"version": "0.0.0-next-bfa0f33f79b0349abe5ad03576e17682f507fe04", | ||
"repository": { | ||
@@ -57,6 +57,6 @@ "type": "git", | ||
"devDependencies": { | ||
"@mongodb-js/eslint-config-compass": "0.0.0-next-823f55a862f13d28437b87fb594450b2208c0d4f", | ||
"@mongodb-js/mocha-config-compass": "0.0.0-next-823f55a862f13d28437b87fb594450b2208c0d4f", | ||
"@mongodb-js/prettier-config-compass": "0.0.0-next-823f55a862f13d28437b87fb594450b2208c0d4f", | ||
"@mongodb-js/tsconfig-compass": "0.0.0-next-823f55a862f13d28437b87fb594450b2208c0d4f", | ||
"@mongodb-js/eslint-config-compass": "0.0.0-next-bfa0f33f79b0349abe5ad03576e17682f507fe04", | ||
"@mongodb-js/mocha-config-compass": "0.0.0-next-bfa0f33f79b0349abe5ad03576e17682f507fe04", | ||
"@mongodb-js/prettier-config-compass": "0.0.0-next-bfa0f33f79b0349abe5ad03576e17682f507fe04", | ||
"@mongodb-js/tsconfig-compass": "0.0.0-next-bfa0f33f79b0349abe5ad03576e17682f507fe04", | ||
"@types/chai": "^4.2.21", | ||
@@ -68,3 +68,3 @@ "@types/mocha": "^9.0.0", | ||
"eslint": "^7.25.0", | ||
"hadron-ipc": "0.0.0-next-823f55a862f13d28437b87fb594450b2208c0d4f", | ||
"hadron-ipc": "0.0.0-next-bfa0f33f79b0349abe5ad03576e17682f507fe04", | ||
"mocha": "^8.4.0", | ||
@@ -79,3 +79,3 @@ "nyc": "^15.1.0", | ||
}, | ||
"gitHead": "823f55a862f13d28437b87fb594450b2208c0d4f" | ||
"gitHead": "bfa0f33f79b0349abe5ad03576e17682f507fe04" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
41007
1581
124
15
21
25