Skip to content

Commit

Permalink
spelling is hard
Browse files Browse the repository at this point in the history
  • Loading branch information
alextaing committed Nov 7, 2023
1 parent 726b323 commit f92b31b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ async function generateFunctionMetadata(
?.getText();
if (!entrypoint) {
throw new Error(
`${relativePath} contains an improper default export assignment. ` +
`${relativePath} contains an unsupported default export assignment. ` +
"The default export must be a function, and it must be formatted " +
"as `export default foo;` for function `foo`."
);
Expand All @@ -82,7 +82,7 @@ async function generateFunctionMetadata(
const entrypoint = defaultExportDeclaration.getName();
if (!entrypoint) {
throw new Error(
`${relativePath} contains an improper default function declaration. ` +
`${relativePath} contains an unsupported default function declaration. ` +
"The default export function must be a named function, exported as " +
"`export default function foo(){}` for function `foo`"
);
Expand All @@ -92,7 +92,7 @@ async function generateFunctionMetadata(
throw new Error(
`${relativePath} does not contain a properly formatted default export. ` +
"The default export must be named and declared either in the function declaration " +
"or in an `export default ...;` expresion."
"or in an `export default ...;` expression."
);
}

Expand Down

0 comments on commit f92b31b

Please sign in to comment.