From 2c83de332c4d016df3bc9d9065d10b852ffa63c4 Mon Sep 17 00:00:00 2001 From: Shammah Chancellor Date: Thu, 13 Jun 2019 20:02:29 -0700 Subject: [PATCH] Provide a reasonable error message to users (#80) Currently, when the .env file cannot be parsed, the dbmate application bombs with no explanation. This commit prints out the error. --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 012f6f1..fb1ee5f 100644 --- a/main.go +++ b/main.go @@ -123,7 +123,7 @@ func loadDotEnv() { } if err := godotenv.Load(); err != nil { - log.Fatal("Error loading .env file") + log.Fatalf("Error loading .env file: %s", err.Error()) } }