From cebffa7848add77893cc433acf4ab7c243f635db Mon Sep 17 00:00:00 2001 From: Emily Stark Date: Wed, 19 Feb 2014 23:43:35 -0800 Subject: [PATCH] Use stderr for login prompt on deploy with expired token --- tools/deploy.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/deploy.js b/tools/deploy.js index 37ffd4e39f..84e82db94d 100644 --- a/tools/deploy.js +++ b/tools/deploy.js @@ -150,7 +150,10 @@ var authedRpc = function (options) { if (infoResult.statusCode === 401 && rpcOptions.promptIfAuthFails) { // Our authentication didn't validate, so prompt the user to log in // again, and resend the RPC if the login succeeds. - var username = utils.readLine({ prompt: "Username: " }); + var username = utils.readLine({ + prompt: "Username: ", + stream: process.stderr + }); var loginOptions = { username: username, suppressErrorMessage: true