mirror of
https://github.com/strapi/strapi.git
synced 2025-10-07 06:11:04 +00:00
Add event to identify quickstart issue
This commit is contained in:
parent
3e62c372f8
commit
1091b218c2
@ -136,7 +136,10 @@ module.exports = (scope, cb) => {
|
|||||||
const isQuick = scope.quick;
|
const isQuick = scope.quick;
|
||||||
|
|
||||||
if (isQuick) {
|
if (isQuick) {
|
||||||
|
trackSuccess('didChooseQuickstart', scope);
|
||||||
answers.client = databaseChoices[0].value;
|
answers.client = databaseChoices[0].value;
|
||||||
|
} else {
|
||||||
|
trackSuccess('didChooseCustomDatabase', scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hasDatabaseConfig) {
|
if (hasDatabaseConfig) {
|
||||||
@ -334,6 +337,7 @@ module.exports = (scope, cb) => {
|
|||||||
try {
|
try {
|
||||||
require(path.join(`${scope.tmpPath}`, '/node_modules/', `${scope.client.connector}/lib/utils/connectivity.js`))(scope, cb.success, connectionValidation);
|
require(path.join(`${scope.tmpPath}`, '/node_modules/', `${scope.client.connector}/lib/utils/connectivity.js`))(scope, cb.success, connectionValidation);
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
|
trackSuccess('didNotConnectDatabase', scope);
|
||||||
console.log(err);
|
console.log(err);
|
||||||
shell.rm('-r', scope.tmpPath);
|
shell.rm('-r', scope.tmpPath);
|
||||||
cb.error();
|
cb.error();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user