Replace panic with slog.Error when .env file loading fails

This commit is contained in:
2025-05-18 13:31:03 +03:30
parent 60a55e3ad8
commit 686eaec0ad

View File

@@ -22,7 +22,7 @@ var Config *config
func Load() *config {
err := godotenv.Load()
if err != nil {
panic("Error loading .env file")
slog.Error("Error loading .env file - Using environment variables instead")
}
// Get mastodon instance