From f290876df7ae9bd1466867f9fd5ea66bc2fb74c9 Mon Sep 17 00:00:00 2001 From: Vindaar Date: Wed, 3 Oct 2018 19:52:12 +0200 Subject: [PATCH] replace `echo` + `quit(1)` by error call in `tquickstart.nim` The call to `quit 1` failed on my machine. Hence use macros.error. --- test/tquickstart.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/tquickstart.nim b/test/tquickstart.nim index 1be224b..d922100 100644 --- a/test/tquickstart.nim +++ b/test/tquickstart.nim @@ -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: