From 0952ff034614cfc1dc07e2b03d97ab3712783460 Mon Sep 17 00:00:00 2001 From: Noah Snelson Date: Fri, 11 Jun 2021 23:27:39 -0700 Subject: [PATCH] Add line to `Can't separate key from value` error message --- godotenv.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/godotenv.go b/godotenv.go index 466f2eb..51e8785 100644 --- a/godotenv.go +++ b/godotenv.go @@ -259,7 +259,7 @@ func parseLine(line string, envMap map[string]string) (key string, value string, } if len(splitString) != 2 { - err = errors.New("Can't separate key from value") + err = fmt.Errorf("Can't separate key from value in line `%v`", line) return }