summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Chris Swithinbank <swithinbank@gmail.com> 2023-05-17 17:30:47 +0200
committerGravatar GitHub <noreply@github.com> 2023-05-17 17:30:47 +0200
commitfc52681ba2f8fe8bcd92eeedf3c6a52fd86a390e (patch)
treedb584248d7cf6f6a3f2d3abdf3ab56797b7ca479
parent410428672ed97bba7ca0b3352c1a7ee564921462 (diff)
downloadastro-fc52681ba2f8fe8bcd92eeedf3c6a52fd86a390e.tar.gz
astro-fc52681ba2f8fe8bcd92eeedf3c6a52fd86a390e.tar.zst
astro-fc52681ba2f8fe8bcd92eeedf3c6a52fd86a390e.zip
Fix weird periods in `NoMatchingRenderer` error (#7110)
* Fix weird periods in `NoMatchingRenderer` error * Add changeset
-rw-r--r--.changeset/ninety-sheep-knock.md5
-rw-r--r--packages/astro/src/core/errors/errors-data.ts6
2 files changed, 8 insertions, 3 deletions
diff --git a/.changeset/ninety-sheep-knock.md b/.changeset/ninety-sheep-knock.md
new file mode 100644
index 000000000..a8b9a0dbf
--- /dev/null
+++ b/.changeset/ninety-sheep-knock.md
@@ -0,0 +1,5 @@
+---
+'astro': patch
+---
+
+Fix formatting in the `NoMatchingRenderer` error message.
diff --git a/packages/astro/src/core/errors/errors-data.ts b/packages/astro/src/core/errors/errors-data.ts
index ab38d2793..9bde01ca9 100644
--- a/packages/astro/src/core/errors/errors-data.ts
+++ b/packages/astro/src/core/errors/errors-data.ts
@@ -167,10 +167,10 @@ export const AstroErrorData = {
${
validRenderersCount > 0
- ? `There ${plural ? 'are.' : 'is.'} ${validRenderersCount} renderer${
- plural ? 's.' : ''
+ ? `There ${plural ? 'are' : 'is'} ${validRenderersCount} renderer${
+ plural ? 's' : ''
} configured in your \`astro.config.mjs\` file,
-but ${plural ? 'none were.' : 'it was not.'} able to server-side render \`${componentName}\`.`
+but ${plural ? 'none were' : 'it was not'} able to server-side render \`${componentName}\`.`
: `No valid renderer was found ${
componentExtension
? `for the \`.${componentExtension}\` file extension.`