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
6
.github/scripts/dev.js
vendored
6
.github/scripts/dev.js
vendored
@ -214,6 +214,10 @@ async function handleStripe() {
|
||||
try {
|
||||
await result;
|
||||
} 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…
Reference in New Issue
Block a user