mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2025-01-18 00:46:47 +01: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…
x
Reference in New Issue
Block a user