move up error print becuse it never be called

Signed-off-by: Clark Du <clark.duxin@gmail.com>
This commit is contained in:
Clark Du 2017-09-08 12:15:29 +08:00
parent eae828ccc6
commit afc756f694
1 changed files with 1 additions and 1 deletions

View File

@ -486,9 +486,9 @@ export default class Builder extends Tapable {
compiler.run((err, stats) => {
/* istanbul ignore if */
if (err) {
console.error(err) // eslint-disable-line no-console
return reject(err)
}
if (err) return console.error(err) // eslint-disable-line no-console
// Show build stats for production
console.log(stats.toString(this.webpackStats)) // eslint-disable-line no-console