From 914e3036675cf70706ac91cf78ea28abffcbd558 Mon Sep 17 00:00:00 2001 From: jabuxas Date: Wed, 18 Sep 2024 14:00:04 -0300 Subject: [PATCH] fix: check .env file existence --- abyss.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/abyss.go b/abyss.go index fcbcd05..ac0932b 100644 --- a/abyss.go +++ b/abyss.go @@ -13,7 +13,10 @@ import ( func main() { app := new(Application) - godotenv.Load() + err := godotenv.Load() + if err != nil { + slog.Warn("no .env file detected, getting env from running process") + } app.auth.username = os.Getenv("AUTH_USERNAME") app.auth.password = os.Getenv("AUTH_PASSWORD")