Commit 4f1f649
committed
(gh-13) Fail for curl 404
By default, curl captures as the -o file whatever the server response is
for <500 responses (excepting -L redirects), which means that a 404 file
not found error doesn't bubble up from the task until we later try to do
something with the file, like asking rpm or dpkg to install the server's
html 404 response text...
Adding --fail-with-body still captures the response but returns non-zero
and let's us halt at the download() where we want.1 parent a2f58a2 commit 4f1f649
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| |||
0 commit comments