update to latest scfg
This commit is contained in:
parent
fb9471a895
commit
f9b6da569d
@ -23,8 +23,8 @@ let choose_output = function
|
||||
| Error (`Msg e) -> Fmt.failwith "%s" e
|
||||
| Ok false -> []
|
||||
| Ok true -> (
|
||||
match Scfg.Parse.from_file (Fpath.to_string file_name) with
|
||||
| Error e -> Fmt.failwith "%s" e
|
||||
match Scfg.Parse.from_file file_name with
|
||||
| Error (`Msg e) -> Fmt.failwith "%s" e
|
||||
| Ok file -> file )
|
||||
in
|
||||
let output_dir =
|
||||
@ -52,7 +52,7 @@ let choose_output = function
|
||||
(* `output_dir` is specified in the user's config, we juste get its value. *)
|
||||
begin
|
||||
match Scfg.Query.get_param 0 output_dir with
|
||||
| Error e -> Fmt.failwith "%s" e
|
||||
| Error (`Msg e) -> Fmt.failwith "%s" e
|
||||
| Ok dir -> (
|
||||
match Bos.Pat.of_string dir with
|
||||
| Error (`Msg e) -> Fmt.failwith "%s" e
|
||||
|
Loading…
x
Reference in New Issue
Block a user