summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorHorus32015-03-20 18:05:18 +0100
committerHorus32015-03-20 18:05:18 +0100
commit17bea88eb3f6e2bc5f63641437a997cc8bd32881 (patch)
treeb683c2db5abdd134bd5e41ced9e257655fe40578 /main.go
parent410504e069d37c522dca6bf820e9fc4cea2de871 (diff)
downloadfreemail-17bea88eb3f6e2bc5f63641437a997cc8bd32881.tar.gz
Too much CSS for now.
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)
}