mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-02 18:11:04 +08:00
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:
@@ -36,7 +36,6 @@ async function main() {
|
||||
getErrors();
|
||||
} catch (e) {
|
||||
console.log(e.stack);
|
||||
console.log(`Error: ${e.message}`);
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user