diff --git a/frontend/src/toolui/VendoredToolUi.tsx b/frontend/src/toolui/VendoredToolUi.tsx index 0bf2e025..b930cb82 100644 --- a/frontend/src/toolui/VendoredToolUi.tsx +++ b/frontend/src/toolui/VendoredToolUi.tsx @@ -20,8 +20,8 @@ class ComponentGuard extends React.Component { render(): React.ReactNode { if (this.state.failed) { return ( -
- {this.props.name} failed to render +
+ Couldn't draw the {this.props.name.replace(/-/g, ' ')} view
); } @@ -102,9 +102,11 @@ function VendoredToolUi({ name, props, extraProps }: VendoredToolUiProps): React if (!entry) return null; if (gate.state === 'bad') { + // Schema jargon is for the console; the transcript gets one quiet human line. + console.warn(`[tool-ui] ${name} payload didn't validate:`, gate.problem); return ( -
- {name} payload didn't validate ({gate.problem}) +
+ Couldn't draw the {name.replace(/-/g, ' ')} view
); }