s/unwrap_err_/unwrap_/
This commit is contained in:
parent
2e60792665
commit
a19ddec2a1
10 changed files with 68 additions and 74 deletions
|
|
@ -145,10 +145,10 @@ end
|
|||
|
||||
(* -- *)
|
||||
|
||||
let read_file fname = Bos.OS.File.read (Fpath.v fname) |> unwrap_err_msg
|
||||
let read_file fname = Bos.OS.File.read (Fpath.v fname) |> unwrap_msg
|
||||
|
||||
let write_file fname content =
|
||||
Bos.OS.File.write (Fpath.v fname) content |> unwrap_err_msg
|
||||
Bos.OS.File.write (Fpath.v fname) content |> unwrap_msg
|
||||
|
||||
let read_master_key_file filename =
|
||||
let* master_key = read_file filename in
|
||||
|
|
@ -167,7 +167,7 @@ let download ~output ~url =
|
|||
% "-X"
|
||||
% "GET"
|
||||
% url)
|
||||
|> unwrap_err_msg
|
||||
|> unwrap_msg
|
||||
|
||||
let upload ~input ~url =
|
||||
let open Bos in
|
||||
|
|
@ -185,7 +185,7 @@ let upload ~input ~url =
|
|||
% "--data"
|
||||
% ("@" ^ input)
|
||||
% url)
|
||||
|> unwrap_err_msg
|
||||
|> unwrap_msg
|
||||
|
||||
let setup ~output ~output_pubkey =
|
||||
Mirage_crypto_rng_unix.use_default ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue