@mongodb-js/compass-logging
Advanced tools
Comparing version 0.0.0-next-fcba5cfd8dce9be8022f245fef7a84f29a1cdcdd to 0.0.0-next-feb0121be4234a831e6bce640173de34ce95dd7a
@@ -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-fcba5cfd8dce9be8022f245fef7a84f29a1cdcdd", | ||
"version": "0.0.0-next-feb0121be4234a831e6bce640173de34ce95dd7a", | ||
"repository": { | ||
@@ -57,6 +57,6 @@ "type": "git", | ||
"devDependencies": { | ||
"@mongodb-js/eslint-config-compass": "0.0.0-next-fcba5cfd8dce9be8022f245fef7a84f29a1cdcdd", | ||
"@mongodb-js/mocha-config-compass": "0.0.0-next-fcba5cfd8dce9be8022f245fef7a84f29a1cdcdd", | ||
"@mongodb-js/prettier-config-compass": "0.0.0-next-fcba5cfd8dce9be8022f245fef7a84f29a1cdcdd", | ||
"@mongodb-js/tsconfig-compass": "0.0.0-next-fcba5cfd8dce9be8022f245fef7a84f29a1cdcdd", | ||
"@mongodb-js/eslint-config-compass": "0.0.0-next-feb0121be4234a831e6bce640173de34ce95dd7a", | ||
"@mongodb-js/mocha-config-compass": "0.0.0-next-feb0121be4234a831e6bce640173de34ce95dd7a", | ||
"@mongodb-js/prettier-config-compass": "0.0.0-next-feb0121be4234a831e6bce640173de34ce95dd7a", | ||
"@mongodb-js/tsconfig-compass": "0.0.0-next-feb0121be4234a831e6bce640173de34ce95dd7a", | ||
"@types/chai": "^4.2.21", | ||
@@ -68,3 +68,3 @@ "@types/mocha": "^9.0.0", | ||
"eslint": "^7.25.0", | ||
"hadron-ipc": "0.0.0-next-fcba5cfd8dce9be8022f245fef7a84f29a1cdcdd", | ||
"hadron-ipc": "0.0.0-next-feb0121be4234a831e6bce640173de34ce95dd7a", | ||
"mocha": "^8.4.0", | ||
@@ -79,3 +79,3 @@ "nyc": "^15.1.0", | ||
}, | ||
"gitHead": "fcba5cfd8dce9be8022f245fef7a84f29a1cdcdd" | ||
"gitHead": "feb0121be4234a831e6bce640173de34ce95dd7a" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
41007
124