Handle serve exception
This commit is contained in:
parent
f727e7f971
commit
d3e96691fb
5
main.go
5
main.go
@ -219,9 +219,10 @@ func main() {
|
|||||||
log.Printf("Starting ftp server on %v:%v", opts.Hostname, opts.Port)
|
log.Printf("Starting ftp server on %v:%v", opts.Hostname, opts.Port)
|
||||||
log.Printf("Username %v, Password %v", *user, *pass)
|
log.Printf("Username %v, Password %v", *user, *pass)
|
||||||
server := server.NewServer(opts)
|
server := server.NewServer(opts)
|
||||||
server.ListenAndServe()
|
|
||||||
|
err = server.ListenAndServe()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal("Error starting server:", err)
|
log.Fatal("Error starting server:", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user