mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Improved error message for yarn dev
refs https://github.com/TryGhost/DevOps/issues/104 - added colors and better messages to help when the script fails
This commit is contained in:
parent
14741b1521
commit
199baacfd5
1 changed files with 5 additions and 1 deletions
6
.github/scripts/dev.js
vendored
6
.github/scripts/dev.js
vendored
|
@ -214,6 +214,10 @@ async function handleStripe() {
|
||||||
try {
|
try {
|
||||||
await result;
|
await result;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error('\nExecuting dev command failed, ensure dependencies are up-to-date by running `yarn fix`\n');
|
console.error();
|
||||||
|
console.error(chalk.red(`Executing dev command failed:`) + `\n`);
|
||||||
|
console.error(chalk.red(`If you've recently done a \`yarn main\`, dependencies might be out of sync. Try running \`${chalk.green('yarn fix')}\` to fix this.`));
|
||||||
|
console.error(chalk.red(`If not, something else went wrong. Please report this to the Ghost team.`));
|
||||||
|
console.error();
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
|
Loading…
Add table
Reference in a new issue