Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion templates/cli/lib/commands/init.js.twig
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ const initCollection = async ({ all, databaseId } = {}) => {

if (databaseIds.length <= 0) {
let answers = await inquirer.prompt(questionsInitCollection)
if (!answers.databases) process.exit(1)
if (!answers.databases) {
throw new Error("No database selected. Please retry command and select at least one with <a> or <i>.")
}
databaseIds.push(...answers.databases);
}

Expand Down