Skip to content

Commit

Permalink
include link in username not provided error
Browse files Browse the repository at this point in the history
  • Loading branch information
kabeaty committed Jan 17, 2025
1 parent 1b71fe4 commit 08aba69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Localized } from "@fluent/react/compat";
import React, { FunctionComponent } from "react";

import TraceableError from "coral-framework/lib/errors/traceableError";
import HTMLContent from "coral-stream/common/HTMLContent";

import CallOut from "../CallOut";

Expand Down Expand Up @@ -38,7 +39,7 @@ const QueryError: FunctionComponent<Props> = ({ error }) => {
<div className={styles.heading}>Message</div>
</Localized>
<div className={styles.section} aria-live={"polite"}>
{error.message}
<HTMLContent>{error.message}</HTMLContent>
</div>
</CallOut>
);
Expand Down
2 changes: 1 addition & 1 deletion server/src/core/server/locales/en-US/errors.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ error-parentCommentRejected = A comment earlier in this conversation thread was
error-ancestorRejected = A comment earlier in this conversation thread was removed. No additional replies can be submitted.
error-commentBodyExceedsMaxLength =
Comment body exceeds maximum length of {$max} characters.
error-usernameNotProvided = Username not provided. Go to {$url} to set your username to comment.
error-usernameNotProvided = Username not provided. Go to <a href="{$url}">{$url}</a> to set your username to comment.
error-storyURLNotPermitted =
The specified story URL does not exist in the permitted domains list.
error-duplicateStoryURL = The specified story URL already exists.
Expand Down

0 comments on commit 08aba69

Please sign in to comment.