diff --git a/lib/phoenix_slime/engine.ex b/lib/phoenix_slime/engine.ex index 5fb9caa..83285df 100644 --- a/lib/phoenix_slime/engine.ex +++ b/lib/phoenix_slime/engine.ex @@ -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