Skip to content

Commit

Permalink
Change the invalid template log message level to error
Browse files Browse the repository at this point in the history
to ensure the user is always shown the offending template
if an error occurs
  • Loading branch information
dmbaturin committed Jan 27, 2022
1 parent a697287 commit fc08ab0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/template.ml
Expand Up @@ -21,5 +21,5 @@ let of_string s =
with _ ->
(* Jingoo incorrectly does not expose its parse error exception in the module interface,
so we have to use a catch-all approach here for now. *)
let () = Logs.debug @@ fun m -> m "Invalid template string:\n%s" s in
let () = Logs.err @@ fun m -> m "Invalid template string:\n%s" s in
raise (Soupault_error "Failed to parse template. Consult Jingoo documentation for a syntax reference.")

0 comments on commit fc08ab0

Please sign in to comment.