We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9ad3c83 + 9726a3f commit 0e57e88Copy full SHA for 0e57e88
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