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:
parent
01054414c8
commit
f56b070909
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user