Fix code error in expansion
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
This commit is contained in:
parent
b0e39d30f0
commit
0db9356692
|
@ -315,8 +315,9 @@ module Unexpanded = struct
|
||||||
match f fn with
|
match f fn with
|
||||||
| [x] -> Value.to_path ~dir x
|
| [x] -> Value.to_path ~dir x
|
||||||
| _ ->
|
| _ ->
|
||||||
Exn.code_error "Ordered_set_lang.Unexpanded.expand path"
|
Loc.fail (String_with_vars.loc fn)
|
||||||
["fn", String_with_vars.sexp_of_t fn]
|
"An unquoted templated expanded to more than one value. \
|
||||||
|
A file path is expected in this position."
|
||||||
in
|
in
|
||||||
match Path.Map.find files_contents path with
|
match Path.Map.find files_contents path with
|
||||||
| Some x -> x
|
| Some x -> x
|
||||||
|
|
Loading…
Reference in New Issue