diff options
Diffstat (limited to 'extensions/html-language-features/server/src/utils/runner.ts')
-rw-r--r-- | extensions/html-language-features/server/src/utils/runner.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/html-language-features/server/src/utils/runner.ts b/extensions/html-language-features/server/src/utils/runner.ts index 69e5c05e61f..6be8c9f2128 100644 --- a/extensions/html-language-features/server/src/utils/runner.ts +++ b/extensions/html-language-features/server/src/utils/runner.ts @@ -8,7 +8,7 @@ import { RuntimeEnvironment } from '../htmlServer'; export function formatError(message: string, err: any): string { if (err instanceof Error) { - let error = <Error>err; + const error = <Error>err; return `${message}: ${error.message}\n${error.stack}`; } else if (typeof err === 'string') { return `${message}: ${err}`; |