From f56b0709097495ea168125a1df8ed1b64592dc5c Mon Sep 17 00:00:00 2001 From: squidfunk Date: Thu, 5 Jan 2017 08:20:40 +0100 Subject: [PATCH] Fixed: Failing MkDocs build does not result in build error --- lib/tasks/mkdocs/build.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/tasks/mkdocs/build.js b/lib/tasks/mkdocs/build.js index 2e26f9d1c..545f6632c 100644 --- a/lib/tasks/mkdocs/build.js +++ b/lib/tasks/mkdocs/build.js @@ -28,6 +28,9 @@ import child from "child_process" export default () => { return () => { - return child.spawnSync("mkdocs", ["build"]) + const proc = child.spawnSync("mkdocs", ["build"]) + if (proc.status) + throw new Error(`MkDocs error:\n${proc.stderr.toString()}`) + return proc } }