Skip to content

Commit 0840b31

Browse files
authored
Merge pull request #171 from robur-coop/update
albatross-client update: handle a not found explicitly, fixes #147
2 parents 5d6e5c4 + e14c84a commit 0840b31

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

client/albatross_client.ml

+2
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ let http_get_redirect ~happy_eyeballs uri =
101101
(match Http_lwt_client.Headers.get resp.Http_lwt_client.headers "location" with
102102
| None -> Error (`Msg "no Location header received in HTTP reply")
103103
| Some loc -> Ok loc)
104+
| `Not_found ->
105+
Error (`Msg "couldn't find the unikernel in the repository")
104106
| _ ->
105107
Logs.warn (fun m -> m "received HTTP reply: %a" Http_lwt_client.pp_response resp);
106108
Error (`Msg "unexpected HTTP reply")

0 commit comments

Comments
 (0)