diff options
Diffstat (limited to 'src/dev.ts')
-rw-r--r-- | src/dev.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/dev.ts b/src/dev.ts index f2cd6a80d..851379d7b 100644 --- a/src/dev.ts +++ b/src/dev.ts @@ -18,7 +18,8 @@ const logging: LogOptions = { dest: defaultLogDestination, }; -export default async function (astroConfig: AstroConfig) { +/** The primary dev action */ +export default async function dev(astroConfig: AstroConfig) { const { projectRoot } = astroConfig; const runtime = await createRuntime(astroConfig, { mode: 'development', logging }); @@ -69,7 +70,8 @@ export default async function (astroConfig: AstroConfig) { }); } -function formatErrorForBrowser(error: Error) { +/** Format error message */ +function formatErrorForBrowser(err: Error) { // TODO make this pretty. - return error.toString(); + return err.toString(); } |