Skip to content

Commit

Permalink
abort on write errors if failfast set
Browse files Browse the repository at this point in the history
  • Loading branch information
Henrik Johansson committed Jun 19, 2019
1 parent a2b3b2c commit 70b6d33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/gemini/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 70b6d33

Please sign in to comment.