Skip to content

Commit f4ccfc9

Browse files
polinasokgopherbot
authored andcommitted
envUtils.ts: log envFile load error
This will turn ambiguous messages like this: <img width="269" alt="image" src="https://user-images.githubusercontent.com/51177946/164947223-a890fbfc-2658-4a6a-88bc-c3e27908cd4b.png"> into this: <img width="266" alt="image" src="https://user-images.githubusercontent.com/51177946/164947521-57f8ed07-e3ca-4bd5-b2cd-28e2e40e2121.png"> Change-Id: Ic8c3edc6fea9488e92d293826cefef6bcb018582 GitHub-Last-Rev: 2a2ea1f GitHub-Pull-Request: #2210 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/401994 Reviewed-by: Hyang-Ah Hana Kim <[email protected]> Run-TryBot: Hyang-Ah Hana Kim <[email protected]> Auto-Submit: Hyang-Ah Hana Kim <[email protected]> TryBot-Result: kokoro <[email protected]> Reviewed-by: Jamal Carvalho <[email protected]>
1 parent d459a78 commit f4ccfc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/envUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export function parseEnvFile(envFilePath: string): { [key: string]: string } {
3939
});
4040
return env;
4141
} catch (e) {
42-
throw new Error(`Cannot load environment variables from file ${envFilePath}`);
42+
throw new Error(`Cannot load environment variables from file ${envFilePath}: ${e}`);
4343
}
4444
}
4545

0 commit comments

Comments
 (0)