Skip to content

Commit

Permalink
Better error message
Browse files Browse the repository at this point in the history
  • Loading branch information
firecow committed Feb 26, 2020
1 parent c531a51 commit aa38333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class Parser {
stage.addJob(job);
} else {
const stagesJoin = Array.from(this.stages.keys()).join(", ");
console.error(`${c.blueBright(`${job.name}`)} ${c.yellow(`${job.stage}`)} ${c.red("isn't specified in stages. Must be one of the following")} ${c.yellow(`${stagesJoin}`)}`);
console.error(`${c.blueBright(`${job.name}`)} uses ${c.yellow(`stage:${job.stage}`)}. Stage cannot be found in [${c.yellow(`${stagesJoin}`)}]`);
process.exit(1);
}

Expand Down

0 comments on commit aa38333

Please sign in to comment.