Commit 25d2959
Gitweb: error handling when commit URL returns no data
Prior to this, the code did a strict-type check of url_get()'s return
value === false, but the function actually returns NULL in case of
failure.
We now check for a non-empty string, which should properly catch any
error encountered by url_get().
In addition, the error message was improved to provide more useful
information to the user.
Fixes #150, #151
Signed-off-by: Damien Regad <[email protected]>
Change from original contribution:
- fixed whitespace
- reworded error message
- detailed commit message1 parent 8e25462 commit 25d2959
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | | - | |
| 230 | + | |
231 | 231 | | |
232 | | - | |
233 | | - | |
| 232 | + | |
| 233 | + | |
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
| 253 | + | |
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
| 257 | + | |
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| |||
0 commit comments