mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
handle errors from peer
This commit is contained in:
parent
8a843a6a85
commit
93a3ec70e7
2 changed files with 14 additions and 2 deletions
3
main.go
3
main.go
|
@ -2,6 +2,7 @@ package main
|
|||
|
||||
import (
|
||||
"flag"
|
||||
"fmt"
|
||||
|
||||
"github.com/schollz/croc/v5/src/croc"
|
||||
)
|
||||
|
@ -43,6 +44,6 @@ func main() {
|
|||
err = c.Receive()
|
||||
}
|
||||
if err != nil {
|
||||
panic(err)
|
||||
fmt.Println(err)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue