vako 1.3.10 → 1.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/commands/setup.js +6 -1
- package/bin/vako.js +1 -1
- package/package.json +1 -1
package/bin/commands/setup.js
CHANGED
|
@@ -703,9 +703,14 @@ ${plugins.map(p => ` ⚡ ${p}`).join('\n') || ' No plugins selected'}
|
|
|
703
703
|
async handleError(error) {
|
|
704
704
|
console.log(chalk.red.bold('\n❌ Setup Error\n'));
|
|
705
705
|
|
|
706
|
+
// Éviter d'afficher le message d'erreur si c'est juste chalk.rainbow
|
|
707
|
+
const errorMessage = error.message.includes('chalk.rainbow')
|
|
708
|
+
? 'An error occurred during setup. Please update vako: npm install -g vako@latest'
|
|
709
|
+
: error.message;
|
|
710
|
+
|
|
706
711
|
const errorBox = boxen(
|
|
707
712
|
chalk.red('An error occurred during setup:\n\n') +
|
|
708
|
-
chalk.white(
|
|
713
|
+
chalk.white(errorMessage) + '\n\n' +
|
|
709
714
|
chalk.gray('Please try again or report this issue if it persists.'),
|
|
710
715
|
{
|
|
711
716
|
padding: 1,
|
package/bin/vako.js
CHANGED
package/package.json
CHANGED