Skip to content

Commit 649ed68

Browse files
authored
Merge pull request #61 from lefessan/z-2020-11-23-wget-fail-on-404
add -f to curl to force wget to fail on error
2 parents 0245d05 + 19fcc29 commit 649ed68

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/drom_lib/misc.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ let wget ~url ~output =
161161
if not (Sys.file_exists dirname) then EzFile.make_dir ~p:true dirname;
162162
call
163163
[| "curl";
164+
"-f";
164165
"--write-out";
165166
"%{http_code}\\n";
166167
"--retry";

0 commit comments

Comments
 (0)