File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -190,13 +190,12 @@ end
190190
191191let descendant_path =
192192 Dune_lang.Decoder. plain_string (fun ~loc fn ->
193- if Filename. is_relative fn then
194- Path.Local. parse_string_exn ~loc fn |> Path.Local. explode
195- else
196- let msg = [ Pp. textf " invalid sub-directory path %S" fn ] in
197- let hints = [ Pp. textf " subdirectory path must be relative" ]
198- in
199- User_error. raise ~loc ~hints msg)
193+ if Filename. is_relative fn then
194+ Path.Local. parse_string_exn ~loc fn |> Path.Local. explode
195+ else
196+ let msg = [ Pp. textf " invalid sub-directory path %S" fn ] in
197+ let hints = [ Pp. textf " subdirectory path must be relative" ] in
198+ User_error. raise ~loc ~hints msg)
200199
201200let strict_subdir field_name =
202201 let open Dune_lang.Decoder in
You can’t perform that action at this time.
0 commit comments