From d86ac5c5cd7ea5708ebee3a091f2f9033426ae67 Mon Sep 17 00:00:00 2001 From: thedevwonder pod Date: Fri, 30 Jun 2023 15:17:21 +0000 Subject: [PATCH] fix(core): fix build error message --- packages/docusaurus/src/webpack/plugins/CleanWebpackPlugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docusaurus/src/webpack/plugins/CleanWebpackPlugin.ts b/packages/docusaurus/src/webpack/plugins/CleanWebpackPlugin.ts index 77bfa6b6714c..a619b4b0e0cc 100644 --- a/packages/docusaurus/src/webpack/plugins/CleanWebpackPlugin.ts +++ b/packages/docusaurus/src/webpack/plugins/CleanWebpackPlugin.ts @@ -160,7 +160,7 @@ export default class CleanWebpackPlugin { fs.statSync(this.outputPath).isFile() ) { throw new Error( - `Output file ${this.outputPath} already exists. Docusaurus needs this directory to save the build output. Either remove/change the file or choose a different build directory via '--out-dir'.`, + `A file '${this.outputPath}' already exists. Docusaurus needs this directory to save the build output. Either remove/change the file or choose a different build directory via '--out-dir'.`, ); }