From 70b6d33cecd03115dba0bb3c61b2e61012ebd252 Mon Sep 17 00:00:00 2001 From: Henrik Johansson Date: Wed, 19 Jun 2019 09:48:10 +0200 Subject: [PATCH] abort on write errors if failfast set --- cmd/gemini/root.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/gemini/root.go b/cmd/gemini/root.go index bb7f9587..e02cae63 100644 --- a/cmd/gemini/root.go +++ b/cmd/gemini/root.go @@ -330,9 +330,9 @@ func runJob(f testJob, schema *gemini.Schema, s store.Store, mode string, out *o if sp != nil { sp.Suffix = fmt.Sprintf(" Running Gemini... %v", testRes) } - if testRes.ReadErrors > 0 { + if testRes.ReadErrors > 0 || testRes.WriteErrors > 0 { if failFast { - fmt.Println("Error in data validation. Exiting.") + fmt.Println("Errors detected. Exiting.") stop(cancelWorkers, c, out, testRes) return }