THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Browse Source

examples: tftp: Fix missing error checking in example

pull/639/head
James Shubin 3 months ago
parent
commit
b987a7da4c
  1. 4
      examples/tftp/tftp_client.go

4
examples/tftp/tftp_client.go

@ -42,6 +42,10 @@ func main() {
buf := new(bytes.Buffer)
n, err := wt.WriteTo(buf)
if err != nil {
log.Printf("Error writing to buffer: %v", err)
return
}
log.Printf("%d bytes received", n)
log.Printf("Got: %s", buf.String())

Loading…
Cancel
Save