This commit is contained in:
parent
0824fdd061
commit
7cdf470269
1 changed files with 4 additions and 3 deletions
|
|
@ -17,7 +17,7 @@ import
|
||||||
packages/docutils/rst, packages/docutils/rstgen,
|
packages/docutils/rst, packages/docutils/rstgen,
|
||||||
json, xmltree, cgi, trees, types,
|
json, xmltree, cgi, trees, types,
|
||||||
typesrenderer, astalgo, lineinfos, intsets,
|
typesrenderer, astalgo, lineinfos, intsets,
|
||||||
pathutils, trees, tables, nimpaths, renderverbatim
|
pathutils, trees, tables, nimpaths, renderverbatim, osproc
|
||||||
|
|
||||||
from std/private/globs import nativeToUnixPath
|
from std/private/globs import nativeToUnixPath
|
||||||
|
|
||||||
|
|
@ -225,8 +225,9 @@ proc newDocumentor*(filename: AbsoluteFile; cache: IdentCache; conf: ConfigRef,
|
||||||
]
|
]
|
||||||
let cmd = cmd.interpSnippetCmd
|
let cmd = cmd.interpSnippetCmd
|
||||||
rawMessage(conf, hintExecuting, cmd)
|
rawMessage(conf, hintExecuting, cmd)
|
||||||
if execShellCmd(cmd) != status:
|
let (output, gotten) = execCmdEx(cmd)
|
||||||
rawMessage(conf, errGenerated, "executing of external program failed: " & cmd)
|
if gotten != status:
|
||||||
|
rawMessage(conf, errGenerated, "snippet failed: cmd: '$1' status: $2 expected: $3 output: $4" % [cmd, $gotten, $status, output])
|
||||||
result.emitted = initIntSet()
|
result.emitted = initIntSet()
|
||||||
result.destFile = getOutFile2(conf, presentationPath(conf, filename), outExt, false)
|
result.destFile = getOutFile2(conf, presentationPath(conf, filename), outExt, false)
|
||||||
result.thisDir = result.destFile.splitFile.dir
|
result.thisDir = result.destFile.splitFile.dir
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue