Skip to content
Snippets Groups Projects
Commit 4f49965f authored by Thomas Wood's avatar Thomas Wood
Browse files

Add location info to "let can't deconstruct" error

parent 73170b98
No related branches found
No related tags found
No related merge requests found
...@@ -475,7 +475,7 @@ and js_of_let_pattern ?(mod_gen=[]) pat expr = ...@@ -475,7 +475,7 @@ and js_of_let_pattern ?(mod_gen=[]) pat expr =
| _ -> out_of_scope pat.pat_loc "pattern-matching in arrays" | _ -> out_of_scope pat.pat_loc "pattern-matching in arrays"
) pat_l in ) pat_l in
ppf_pat_array l sexpr ppf_pat_array l sexpr
| _ -> error "let can't deconstruct values" | _ -> error ~loc:pat.pat_loc "let can't deconstruct values"
and js_of_pattern ?(mod_gen=[]) pat obj = and js_of_pattern ?(mod_gen=[]) pat obj =
let locn = pat.pat_loc in let locn = pat.pat_loc in
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment