fix(core): Move error obfuscation to FE (no-changelog) (#10237)

This commit is contained in:
Michael Kret
2024-08-05 16:42:06 +03:00
committed by GitHub
parent 06419d9483
commit c0bdf3b719
5 changed files with 37 additions and 9 deletions

View File

@@ -179,6 +179,10 @@ function addItemIndexSuffix(message: string): string {
}
function getErrorMessage(): string {
if ('obfuscate' in props.error && props.error.obfuscate === true) {
return i18n.baseText('nodeErrorView.showMessage.obfuscate');
}
let message = '';
const isSubNodeError =

View File

@@ -1125,6 +1125,7 @@
"nodeErrorView.itemIndex": "Item Index",
"nodeErrorView.runIndex": "Run Index",
"nodeErrorView.showMessage.title": "Copied to clipboard",
"nodeErrorView.showMessage.obfuscate": "Internal error",
"nodeErrorView.stack": "Stack",
"nodeErrorView.theErrorCauseIsTooLargeToBeDisplayed": "The error cause is too large to be displayed",
"nodeErrorView.time": "Time",