diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a832d6..628be80 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # sapper changelog +## 0.10.6 + +* Fix error reporting in `sapper start` + ## 0.10.5 * Fix missing service worker ([#231](https://github.com/sveltejs/sapper/pull/231)) diff --git a/package.json b/package.json index e35f7c6..a118067 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sapper", - "version": "0.10.5", + "version": "0.10.6", "description": "Military-grade apps, engineered by Svelte", "main": "dist/middleware.ts.js", "bin": { diff --git a/src/cli/start.ts b/src/cli/start.ts index 9c3cb85..4f98067 100644 --- a/src/cli/start.ts +++ b/src/cli/start.ts @@ -11,13 +11,13 @@ export async function start(dir: string, opts: { port: number, open: boolean }) const server = path.resolve(dir, 'server.js'); if (!fs.existsSync(server)) { - console.log(clorox.bold.red(`> ${dir}/server.js does not exist — type ${clorox.bold.cyan(dir === 'build' ? `npx sapper build` : `npx sapper build ${dir}`)} to create it`)); + console.log(`${clorox.bold.red(`> ${dir}/server.js does not exist — type ${clorox.bold.cyan(dir === 'build' ? `npx sapper build` : `npx sapper build ${dir}`)} to create it`)}`); return; } if (port) { if (!await ports.check(port)) { - console.log(clorox.bold.red(`> Port ${port} is unavailable`)); + console.log(`${clorox.bold.red(`> Port ${port} is unavailable`)}`); return; } } else {