We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents de36792 + 7bd4935 commit ff47c42Copy full SHA for ff47c42
1 file changed
src/time_expr.ml
@@ -996,7 +996,9 @@ module Of_string = struct
996
997
let of_string ?(enabled_fragments = all_lang_fragments) (s : string) :
998
(Time_expr_ast.t, string) result =
999
- parse_string (time_expr ~enabled_fragments <* skip_space <* eoi) s
+ match enabled_fragments with
1000
+ | [] -> Error "No language fragments are enabled"
1001
+ | _ -> parse_string (time_expr ~enabled_fragments <* skip_space <* eoi) s
1002
end
1003
1004
let of_string = Of_string.of_string
0 commit comments