Skip to content

Commit

Permalink
put the error back
Browse files Browse the repository at this point in the history
  • Loading branch information
mhjd committed Aug 26, 2024
1 parent 328c8d4 commit 5c1a145
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/ohow/api.ml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,18 @@ let parse_lid id =
| id :: rpath when not (is_capitalized id) ->
check_capitalized_path rpath;
(List.rev rpath, id)
| _ -> ([], "")
(* raise (Error (Printf.sprintf "invalid ocaml id %S" (String.concat "" id))) *)
| _ ->
(* ([], "") *)
raise (Error (Printf.sprintf "invalid ocaml id %S" (String.concat "" id)))

let parse_uid id =
match List.rev (String.split_on_char '.' (String.concat "" id)) with
| id :: rpath when is_capitalized id ->
check_capitalized_path rpath;
(List.rev rpath, id)
| _ -> ([], "")
(* raise (Error (Printf.sprintf "invalid ocaml id %S" (String.concat "" id))) *)
| _ ->
(* ([], "") *)
raise (Error (Printf.sprintf "invalid ocaml id %S" (String.concat "" id)))

let parse_method id =
match String.split_on_char '#' id with
Expand Down

0 comments on commit 5c1a145

Please sign in to comment.