Skip to content

Commit

Permalink
error type from deriver
Browse files Browse the repository at this point in the history
  • Loading branch information
maxtori committed Oct 14, 2024
1 parent e88a92b commit c52a82c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ppx/ppx_common.ml
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,8 @@ let deriver_str_gen kind meth ~loc ~path:_ (rec_flag, l) path input output error
hide = Option.value ~default:options.hide hide;
input_example = Option.value ~default:options.input_example input_example;
output_example = Option.value ~default:options.output_example output_example;
debug; nargs
debug; nargs;
error_type = (match errors with None -> options.error_type | Some _ -> [%type: _]);
} in
let s, _, options = service_value ~meth ~loc ~options ?name:sname ~parse_options:false (PStr []) in
match kind with
Expand Down

0 comments on commit c52a82c

Please sign in to comment.