From 0db935669298e60dac1c0a19f22054c39b6b3cf2 Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Fri, 13 Jul 2018 11:38:32 +0200 Subject: [PATCH] Fix code error in expansion Signed-off-by: Rudi Grinberg --- src/ordered_set_lang.ml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ordered_set_lang.ml b/src/ordered_set_lang.ml index a65eeeca..393f7a76 100644 --- a/src/ordered_set_lang.ml +++ b/src/ordered_set_lang.ml @@ -315,8 +315,9 @@ module Unexpanded = struct match f fn with | [x] -> Value.to_path ~dir x | _ -> - Exn.code_error "Ordered_set_lang.Unexpanded.expand path" - ["fn", String_with_vars.sexp_of_t fn] + Loc.fail (String_with_vars.loc fn) + "An unquoted templated expanded to more than one value. \ + A file path is expected in this position." in match Path.Map.find files_contents path with | Some x -> x