Merge pull request #3329 from nickrum/cli-error-improvement

Improve cli init error message
This commit is contained in:
Rijk van Zanten
2020-12-07 08:41:27 -05:00
committed by GitHub

View File

@@ -53,7 +53,7 @@ export default async function init(options: Record<string, any>) {
console.log();
console.log('Something went wrong while seeding the database:');
console.log();
console.log(`${err.code && chalk.red(`[${err.code}]`)} ${err.message}`);
console.log(`${chalk.red(`[${err.code || 'Error'}]`)} ${err.message}`);
console.log();
console.log('Please try again');
console.log();