Skip to content

Commit

Permalink
Log errorness permutations instead of panicking
Browse files Browse the repository at this point in the history
  • Loading branch information
zimmski committed Oct 31, 2018
1 parent 5587a92 commit d0e6576
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fuzz/strategy/almostallpermutations.go
Expand Up @@ -246,7 +246,7 @@ func (s *almostAllPermutations) setTokenPermutation(tok token.Token, permutation
log.Debugf("set %#v(%p) to permutation %d of max permutations %d", tok, tok, permutation, tok.Permutations())

if err := tok.Permutation(permutation); err != nil {
panic(err)
log.Errorf("Unknown permutation, ERROR: %s", err.Error())
}

s.resetedLookup[tok] = permutation
Expand Down

0 comments on commit d0e6576

Please sign in to comment.