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),
|
||||
newLit(path))))
|
||||
else:
|
||||
echo "Error: neither 01-in.yaml nor 01-out.yaml exists in " & path & '!'
|
||||
quit 1
|
||||
error("Error: neither 01-in.yaml nor 01-out.yaml exists in " & path & '!')
|
||||
result.add(test)
|
||||
for kind, childPath in walkDir(path):
|
||||
if kind == pcDir:
|
||||
|
|
Loading…
Reference in New Issue