Skip to content

Commit

Permalink
Adjust formatting a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGross committed Jul 16, 2024
1 parent 810da7c commit 4fda331
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions src/helpers.ml
Original file line number Diff line number Diff line change
Expand Up @@ -154,18 +154,13 @@ let download_cps ~uri ~with_file =
| Some new_uri ->
inner_download new_uri
| None ->
let msg =
Printf.sprintf "Redirected from %s, but no Location header found"
(Uri.to_string uri)
in
Lwt.return_error msg )
| status_code ->
let msg =
Printf.sprintf "HTTP request to %s failed with status code: %s"
f "Redirected from %s, but no Location header found"
(Uri.to_string uri)
(Code.string_of_status status_code)
in
Lwt.return_error msg
|> Lwt.return_error )
| status_code ->
f "HTTP request to %s failed with status code: %s" (Uri.to_string uri)
(Code.string_of_status status_code)
|> Lwt.return_error
in
inner_download uri

Expand Down

0 comments on commit 4fda331

Please sign in to comment.