mirror of
https://github.com/strapi/strapi.git
synced 2025-10-06 13:52:13 +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;
|
||||
|
||||
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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user