Fixed: Failing MkDocs build does not result in build error

This commit is contained in:
squidfunk 2017-01-05 08:20:40 +01:00
parent 01054414c8
commit f56b070909

View File

@ -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
}
}