Commit 47b9e02
committed
src/goInstallTools: report when go.toolsManagement.go is not executable
When go.toolsManagement.go is not a valid executable, we forgot to
log it. Instead, let `getGoVersion` throw an error so the later fallback
logging kicks in.
Moreover, if `go.logging.level` is error or more verbose,
record the detailed error message in the console to help debugging.
Fixes #2753
Change-Id: Icfb149779af3a1dc256cc11c931d1f29fb2b1a6a
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/501056
Reviewed-by: Suzy Mueller <[email protected]>
Run-TryBot: Hyang-Ah Hana Kim <[email protected]>
TryBot-Result: kokoro <[email protected]>1 parent 50e2b64 commit 47b9e02
1 file changed
+12
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
| |||
0 commit comments