mirror of
https://github.com/AuxXxilium/arv-v-dsm.git
synced 2024-11-23 23:10:58 +07:00
Error handling
This commit is contained in:
parent
65a5a654ea
commit
483ee2b11e
@ -55,7 +55,7 @@ func main() {
|
||||
listener, err := net.Listen("tcp", *ListenAddr)
|
||||
|
||||
if err != nil {
|
||||
log.Println("Error listening", err.Error())
|
||||
log.Fatalln("Error listening", err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
@ -64,7 +64,7 @@ func main() {
|
||||
for {
|
||||
conn, err := listener.Accept()
|
||||
if err != nil {
|
||||
log.Println("Error on accept", err.Error())
|
||||
log.Fatalln("Error on accept", err.Error())
|
||||
return
|
||||
}
|
||||
log.Printf("New connection from %s\n", conn.RemoteAddr().String())
|
||||
|
Loading…
Reference in New Issue
Block a user