mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed: Failing MkDocs build does not result in build error
This commit is contained in:
@@ -28,6 +28,9 @@ import child from "child_process"
|
|||||||
|
|
||||||
export default () => {
|
export default () => {
|
||||||
return () => {
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user