From 89e423eb293c4785e81ad2025a7935f79cf9fb05 Mon Sep 17 00:00:00 2001 From: Antonio Nuno Monteiro Date: Fri, 20 Oct 2023 00:18:57 -0700 Subject: [PATCH] fix: new PPX name in the error messages (#800) --- ppx/reason_react_ppx.ml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ppx/reason_react_ppx.ml b/ppx/reason_react_ppx.ml index b84c185d9..36de324a0 100644 --- a/ppx/reason_react_ppx.ml +++ b/ppx/reason_react_ppx.ml @@ -658,8 +658,8 @@ let jsxMapper = Ocaml_common.Location.prerr_warning pattern.ppat_loc (Preprocessor (Printf.sprintf - "react-jsx-ppx: optional argument annotations must \ - have an explicit `option` type. Did you mean \ + "reason-react-ppx: optional argument annotations \ + must have an explicit `option` type. Did you mean \ `option(%s)=?`?" currentType))) | _ -> () @@ -696,7 +696,7 @@ let jsxMapper = (list, Some txt) | Pexp_fun (Nolabel, _, pattern, _expression) -> Location.raise_errorf ~loc:pattern.ppat_loc - "react-jsx-ppx: react.component refs only support plain arguments \ + "reason-react-ppx: react.component refs only support plain arguments \ and type annotations." | _ -> (list, None) [@@raises Invalid_argument] @@ -965,7 +965,7 @@ let jsxMapper = ((fun a -> a), false, unerasableIgnoreExp expression) else Location.raise_errorf ~loc:pattern.ppat_loc - "react-jsx-ppx: props need to be labelled arguments.\n\ + "reason-react-ppx: props need to be labelled arguments.\n\ \ If you are working with refs be sure to wrap with \ React.forwardRef.\n\ \ If your component doesn't have any props, use () \