We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76326b6 commit dd47866Copy full SHA for dd47866
vlib/net/http/download.v
@@ -13,7 +13,7 @@ pub fn download_file(url string, out_file_path string) ! {
13
}
14
s := get(url) or { return err }
15
if s.status() != .ok {
16
- return error('received http code ${s.status_code}')
+ return error_with_code(s.body, s.status_code)
17
18
$if debug_http ? {
19
println('http.download_file saving ${s.body.len} bytes')
0 commit comments