Skip to content

Commit

Permalink
fix(types): missing return type on logError (vitejs#5067)
Browse files Browse the repository at this point in the history
  • Loading branch information
yingpengsha authored and aleclarson committed Nov 8, 2021
1 parent f75f55a commit cd3a064
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/server/middlewares/error.ts
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 cd3a064

Please sign in to comment.