diff --git a/main.go b/main.go index e2191d5..ccdb998 100644 --- a/main.go +++ b/main.go @@ -219,9 +219,10 @@ func main() { log.Printf("Starting ftp server on %v:%v", opts.Hostname, opts.Port) log.Printf("Username %v, Password %v", *user, *pass) server := server.NewServer(opts) - server.ListenAndServe() + + err = server.ListenAndServe() if err != nil { log.Fatal("Error starting server:", err) - } + } }