From c0c4e65b5d7fc683cdf5bba0216f258c108c1454 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Fri, 12 Dec 2014 14:54:48 -0800 Subject: [PATCH] Warnings to do stderr --- build/tasks/spec-task.coffee | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build/tasks/spec-task.coffee b/build/tasks/spec-task.coffee index a8c019446..bfabb0b7d 100644 --- a/build/tasks/spec-task.coffee +++ b/build/tasks/spec-task.coffee @@ -11,11 +11,11 @@ module.exports = (grunt) -> packageSpecQueue = null - logDeprecations = (label, {stdout}={}) -> - if process.env.JANKY_SHA1 and stdout?.indexOf('Calls to deprecated functions') isnt -1 + logDeprecations = (label, {stderr}={}) -> + if process.env.JANKY_SHA1 and stderr?.indexOf('Calls to deprecated functions') isnt -1 grunt.log.error(label) - stdout = stdout.replace(/^\[.*\] "/g, '') - stdout = stdout.replace(/source: .*$/g, '') + stderr = stderr.replace(/^\[.*\] "/g, '') + stderr = stderr.replace(/source: .*$/g, '') grunt.log.error(stdout) getAppPath = ->