Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
Include type in panic message (#50)
Browse files Browse the repository at this point in the history
Previous this message looked like:

    Can't handle <nil>

After this change:

    Can't handle type interface {} with value <nil>
  • Loading branch information
dnephin authored Oct 18, 2022
1 parent 5ed06dc commit ea42da0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fuzz.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ func (fc *fuzzerContext) doFuzz(v reflect.Value, flags uint64) {
case reflect.Interface:
fallthrough
default:
panic(fmt.Sprintf("Can't handle %#v", v.Interface()))
panic(fmt.Sprintf("Can't handle type %v with value %#v", v.Type(), v.Interface()))
}
}

Expand Down

0 comments on commit ea42da0

Please sign in to comment.