summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/main.go b/main.go
index b810e12..23e15b4 100644
--- a/main.go
+++ b/main.go
@@ -41,6 +41,9 @@ func main() {
ip := os.Getenv("FREEMAIL_HTTP_IP")
port := os.Getenv("FREEMAIL_HTTP_PORT")
- http.ListenAndServe(ip+":"+port, nil)
- log.Println("Ales oke")
+ err := http.ListenAndServe(ip+":"+port, nil)
+ if err != nil {
+ log.Panic(err)
+ }
+ log.Println("Server is up and listens on " + ip + ":" + port)
}