diff --git a/cmd/end2endtest/arbo_race.go b/cmd/end2endtest/arbo_race.go
index dfa2db96f..f80cf2e36 100644
--- a/cmd/end2endtest/arbo_race.go
+++ b/cmd/end2endtest/arbo_race.go
@@ -96,7 +96,7 @@ func (t *E2EArboRace) Run() error {
 	for {
 		election, err := t.api.ElectionResults(t.election.ElectionID)
 		if err != nil && !strings.Contains(err.Error(), "5024") { // "election results are not yet available" (TODO: proper code matching)
-			log.Errorf("found an unexpected error: %s", err)
+			return fmt.Errorf("found an unexpected error %w", err)
 		}
 		if err == nil && election != nil {
 			log.Infow("election published results", "election",