This commit is contained in:
Illya Marchenko 2024-04-05 16:50:00 +03:00
parent 6a8f405bbc
commit ff55e9e3a7
Signed by: stuzer05
GPG Key ID: A6ABAAA9268F9F4F

@ -29,8 +29,7 @@ func main() {
// test config read
_, err = ReadConfig(os.Getenv("CONFIG_PATH"))
if err != nil {
fmt.Println("cannot read config - " + err.Error())
return
log.Fatalf("cannot read config - " + err.Error())
}
// flags
@ -64,7 +63,7 @@ func main() {
fmt.Println("Webhook server listening on " + os.Getenv("LISTEN"))
err = http.ListenAndServe(os.Getenv("LISTEN"), nil)
if err != nil {
panic(err.Error())
log.Fatalf(err.Error())
}
}
}