Skip to content

Commit

Permalink
Add source path to TemplateSyntaxError. (#96)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrey Akulov <[email protected]>
  • Loading branch information
astery and Andrey Akulov authored Nov 29, 2023
1 parent e38083b commit ae3b6db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/phoenix_slime/engine.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@ defmodule PhoenixSlime.Engine do
file_path
|> File.read!()
|> Slime.Renderer.precompile()
rescue
e in Slime.TemplateSyntaxError -> reraise %{e | source: file_path}, __STACKTRACE__
end
end

0 comments on commit ae3b6db

Please sign in to comment.