Skip to content

Commit a21d702

Browse files
authored
enhance(flaws-page): specify 'yarn build' usage in error message for clarity (#10785)
1 parent 9a90d17 commit a21d702

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: client/src/flaws/index.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ function DocumentsTable({
628628
)}
629629
</h3>
630630
{!counts.built ? (
631-
<WarnAboutNothingBuilt />
631+
<WarnAboutNothingBuilt locale={locale} />
632632
) : (
633633
<h4 className="subheader">
634634
{counts.built.toLocaleString()} documents built ({locale})
@@ -735,13 +735,13 @@ function PageLink({
735735
);
736736
}
737737

738-
function WarnAboutNothingBuilt() {
738+
function WarnAboutNothingBuilt({ locale }) {
739739
return (
740740
<div className="notecard warning document-warnings">
741741
<h4>No documents have been built, so no flaws can be found</h4>
742742
<p>
743-
At the moment, you have to use the command line tools to build documents
744-
that we can analyze.
743+
Run <code>yarn build --locale {locale.toLowerCase()}</code> to build all
744+
documents for the current locale.
745745
</p>
746746
</div>
747747
);

0 commit comments

Comments
 (0)