From 76c3b358ccae3c4ba2ce32460ae6c2edf3176612 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Wed, 14 Jun 2017 03:17:22 +0430 Subject: [PATCH] better No build files found error --- lib/builder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/builder.js b/lib/builder.js index ef27ca6667..4ae2efa29f 100644 --- a/lib/builder.js +++ b/lib/builder.js @@ -128,7 +128,7 @@ export default class Builder extends Tapable { const bundlePath = join(serverConfig.output.path, 'server-bundle.json') const manifestPath = join(serverConfig.output.path, 'client-manifest.json') if (!fs.existsSync(bundlePath) || !fs.existsSync(manifestPath)) { - throw new Error('No build files found, please run `nuxt build` before launching `nuxt start`') + throw new Error(`No build files found in ${serverConfig.output.path}, please run \`nuxt build\` before launching \`nuxt start\``) } const bundle = fs.readFileSync(bundlePath, 'utf8') const manifest = fs.readFileSync(manifestPath, 'utf8')