We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ad3c83 commit 9726a3fCopy full SHA for 9726a3f
measurement/traceroute/reply.go
@@ -62,7 +62,10 @@ func (r *Reply) X() string {
62
// "A" (administratively prohibited), "P" (protocol unreachable),
63
// "p" (port unreachable) "h" (beyond scope, from fw 4650) (optional).
64
func (r *Reply) Err() string {
65
- return r.data.Err.(string)
+ if err, ok := r.data.Err.(string); ok {
66
+ return err
67
+ }
68
+ return ""
69
}
70
71
// IPv4 or IPv6 source address in reply.
0 commit comments