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:
Vindaar 2018-10-03 19:52:12 +02:00 committed by flyx
parent fb13dc1627
commit f290876df7
1 changed files with 1 additions and 2 deletions

View File

@ -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: