Add event to identify quickstart issue

This commit is contained in:
Aurélien Georget 2019-02-06 15:59:59 +01:00
parent 3e62c372f8
commit 1091b218c2

View File

@ -136,7 +136,10 @@ module.exports = (scope, cb) => {
const isQuick = scope.quick;
if (isQuick) {
trackSuccess('didChooseQuickstart', scope);
answers.client = databaseChoices[0].value;
} else {
trackSuccess('didChooseCustomDatabase', scope);
}
if (hasDatabaseConfig) {
@ -334,6 +337,7 @@ module.exports = (scope, cb) => {
try {
require(path.join(`${scope.tmpPath}`, '/node_modules/', `${scope.client.connector}/lib/utils/connectivity.js`))(scope, cb.success, connectionValidation);
} catch(err) {
trackSuccess('didNotConnectDatabase', scope);
console.log(err);
shell.rm('-r', scope.tmpPath);
cb.error();