update error anchors (#13527)

This commit is contained in:
Vadim Ogievetsky 2022-12-08 13:18:35 -08:00 committed by GitHub
parent 91ef9872ec
commit d8e27eaab4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View File

@ -84,7 +84,7 @@ export function getLink(linkName: LinkNames): string {
case 'DOCS_API': case 'DOCS_API':
return `${links.docsHref}/operations/api-reference.html`; return `${links.docsHref}/operations/api-reference.html`;
case 'DOCS_MSQ_ERROR': case 'DOCS_MSQ_ERROR':
return `${links.docsHref}/multi-stage-query/concepts.html#error-codes`; return `${links.docsHref}/multi-stage-query/reference.html`;
case 'COMMUNITY': case 'COMMUNITY':
return links.communityHref; return links.communityHref;
case 'SLACK': case 'SLACK':

View File

@ -9,7 +9,7 @@ exports[`ExecutionErrorPane matches snapshot 1`] = `
className="error-message-text" className="error-message-text"
> >
<Memo(ExternalLink) <Memo(ExternalLink)
href="https://druid.apache.org/docs/latest/multi-stage-query/concepts.html#error-codes" href="https://druid.apache.org/docs/latest/multi-stage-query/reference.html#error_TooManyWarnings"
> >
TooManyWarnings TooManyWarnings
</Memo(ExternalLink)> </Memo(ExternalLink)>

View File

@ -46,7 +46,9 @@ export const ExecutionErrorPane = React.memo(function ExecutionErrorPane(
<p className="error-message-text"> <p className="error-message-text">
{error.errorCode && ( {error.errorCode && (
<> <>
<ExternalLink href={getLink('DOCS_MSQ_ERROR')}>{error.errorCode}</ExternalLink> <ExternalLink href={`${getLink('DOCS_MSQ_ERROR')}#error_${error.errorCode}`}>
{error.errorCode}
</ExternalLink>
{': '} {': '}
</> </>
)} )}