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 <lomitch@microsoft.com>
Commit-Queue: Mandy Chen <mandy.chen@microsoft.com>
Cr-Original-Commit-Position: refs/heads/master@{#703813}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c9ef1c432008114038aade7d70fe815a036e7068
This commit is contained in:
Mandy Chen
2019-10-08 17:47:21 +00:00
committed by Commit Bot
parent 0723204a47
commit 218413b440
-1
View File
@@ -36,7 +36,6 @@ async function main() {
getErrors();
} catch (e) {
console.log(e.stack);
console.log(`Error: ${e.message}`);
process.exit(1);
}
}