From 218413b440abc95f6c8b5ecdfe2482dc8eb06138 Mon Sep 17 00:00:00 2001 From: Mandy Chen Date: Tue, 8 Oct 2019 17:47:21 +0000 Subject: [PATCH] DevTools: Only log error stack to avoid duplicate error messages The localization parser currently logs the error stack and error message when running without the --autofix flag. Since the stack includes the error message, this CL takes out the call to log the error message to avoid duplicate error messages. Bug: 941561 Change-Id: If8c5f05148be6e2eb666eb17cefe649715006209 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1820088 Reviewed-by: Lorne Mitchell Commit-Queue: Mandy Chen Cr-Original-Commit-Position: refs/heads/master@{#703813} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: c9ef1c432008114038aade7d70fe815a036e7068 --- scripts/check_localizable_resources.js | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/check_localizable_resources.js b/scripts/check_localizable_resources.js index 21e3736613..706554e63a 100644 --- a/scripts/check_localizable_resources.js +++ b/scripts/check_localizable_resources.js @@ -36,7 +36,6 @@ async function main() { getErrors(); } catch (e) { console.log(e.stack); - console.log(`Error: ${e.message}`); process.exit(1); } }