Commit a9d9ef3
committed
ref(http.go): improve client error message
This PR improves the resultant client error message they get when the returned response is
incorrect. This is especially important for determining the error message
Old message when using a v2 client with a v1 cluster:
```
http://deis.10.245.1.3.xip.io does not appear to be a valid Deis controller. Make sure that the
Controller URI is correct and the server is running.
```
New message:
```
http://deis.10.245.1.3.xip.io/v2/ does not appear to be a valid Deis controller. Make sure that the
Controller URI is correct and the server is running.
```
Notice the appended /v2/ path, which users can assume this is a v2 client.1 parent 7564297 commit a9d9ef3
1 file changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
160 | | - | |
161 | | - | |
| 159 | + | |
| 160 | + | |
162 | 161 | | |
163 | 162 | | |
164 | 163 | | |
| |||
172 | 171 | | |
173 | 172 | | |
174 | 173 | | |
175 | | - | |
| 174 | + | |
176 | 175 | | |
177 | 176 | | |
178 | 177 | | |
179 | 178 | | |
180 | 179 | | |
181 | | - | |
| 180 | + | |
182 | 181 | | |
183 | 182 | | |
184 | 183 | | |
| |||
0 commit comments