mirror of https://github.com/apache/druid.git
update error anchors (#13527)
This commit is contained in:
parent
91ef9872ec
commit
d8e27eaab4
|
@ -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':
|
||||||
|
|
|
@ -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)>
|
||||||
|
|
|
@ -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>
|
||||||
{': '}
|
{': '}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Reference in New Issue