Skip to content

Commit

Permalink
fix(types): missing return type on logError (#5067)
Browse files Browse the repository at this point in the history
  • Loading branch information
yingpengsha authored Sep 24, 2021
1 parent de3de57 commit 3c9f1a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/server/middlewares/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function cleanStack(stack: string) {
.join('\n')
}

export function logError(server: ViteDevServer, err: RollupError) {
export function logError(server: ViteDevServer, err: RollupError): void {
const msg = buildErrorMessage(err, [
chalk.red(`Internal server error: ${err.message}`)
])
Expand Down

0 comments on commit 3c9f1a1

Please sign in to comment.