Skip to content

Commit

Permalink
fix(core/xref): fix rendering of hint in ambiguous term error (#4724)
Browse files Browse the repository at this point in the history
  • Loading branch information
sidvishnoi committed Jun 4, 2024
1 parent cd9a684 commit 8baa4c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/xref.js
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,9 @@ function showErrors({ ambiguous, notFound }) {
const formUrl = getPrefilledFormURL(originalTerm, query, specs);
const forParent = query.for ? `, for **"${query.for}"**, ` : "";
const moreInfo = howToFix(formUrl, originalTerm);
const hint = docLink`To fix, use the ${"[data-cite]"} attribute to pick the one you mean from the appropriate specification. ${moreInfo}.`;
const hint =
docLink`To fix, use the ${"[data-cite]"} attribute to pick the one you mean from the appropriate specification.` +
String.raw` ${moreInfo}`;
const msg = `The term "**${originalTerm}**"${forParent} is ambiguous because it's defined in ${specsString}.`;
const title = "Definition is ambiguous.";
showError(msg, name, { title, elements: elems, hint });
Expand Down

0 comments on commit 8baa4c0

Please sign in to comment.