Skip to content

Commit df06b10

Browse files
capture and return whatever exception raises to maintain the return consistent
Co-authored-by: Leandro Pereira <[email protected]>
1 parent f346cde commit df06b10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/safe_code/validator.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ defmodule SafeCode.Validator do
2525
|> validate_quoted(opts)
2626
end
2727

28-
@spec validate_heex(binary, keyword) :: {:ok, ast :: Macro.t()} | {:error, %Phoenix.LiveView.HTMLTokenizer.ParseError{}}
28+
@spec validate_heex(binary, keyword) :: {:ok, ast :: Macro.t()} | {:error, Exception.t()}
2929
def validate_heex(heex, opts \\ []) when is_binary(heex) do
3030
quoted =
3131
heex

0 commit comments

Comments
 (0)