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