mirror of
https://github.com/directus/directus.git
synced 2026-01-30 20:08:08 -05:00
Merge pull request #3329 from nickrum/cli-error-improvement
Improve cli init error message
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user