mirror of https://github.com/status-im/NimYAML.git
replace `echo` + `quit(1)` by error call in `tquickstart.nim`
The call to `quit 1` failed on my machine. Hence use macros.error.
This commit is contained in:
parent
fb13dc1627
commit
f290876df7
|
@ -120,8 +120,7 @@ proc testsFor(path: string, root: bool = true, titlePrefix: string = ""):
|
||||||
test.add(newCall("doAssert", newCall("outputTest", newLit(baseDir),
|
test.add(newCall("doAssert", newCall("outputTest", newLit(baseDir),
|
||||||
newLit(path))))
|
newLit(path))))
|
||||||
else:
|
else:
|
||||||
echo "Error: neither 01-in.yaml nor 01-out.yaml exists in " & path & '!'
|
error("Error: neither 01-in.yaml nor 01-out.yaml exists in " & path & '!')
|
||||||
quit 1
|
|
||||||
result.add(test)
|
result.add(test)
|
||||||
for kind, childPath in walkDir(path):
|
for kind, childPath in walkDir(path):
|
||||||
if kind == pcDir:
|
if kind == pcDir:
|
||||||
|
|
Loading…
Reference in New Issue