Skip to content

Commit

Permalink
Merge pull request #10 from Microsoft/nickpape/warnings-as-errors
Browse files Browse the repository at this point in the history
Always log warnings in yellow to the same place
  • Loading branch information
nick-pape authored Oct 29, 2016
2 parents 230a9f1 + 2be6748 commit 76345f4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions gulp-core-build/src/logging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,7 @@ function writeSummary(callback: () => void): void {
if (shouldRelogIssues && getWarnings().length) {
const warnings: string[] = getWarnings();
for (let x: number = 0; x < warnings.length; x++) {
if (getConfig().shouldWarningsFailBuild) {
console.error(gutil.colors.yellow(warnings[x]));
} else {
console.log(gutil.colors.yellow(warnings[x]));
}
console.error(gutil.colors.yellow(warnings[x]));
}
}

Expand Down

0 comments on commit 76345f4

Please sign in to comment.