Browse files

Showing missing templates in the error reports.

  • Loading branch information...
1 parent 155561a commit 6786b23917df76b7087b7260ae99206a66b895ee @robertoaloi robertoaloi committed Jan 13, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/eptic-1.4.1/src/e_cache_ets.erl
View
8 lib/eptic-1.4.1/src/e_cache_ets.erl
@@ -83,7 +83,7 @@ valid_cache(File) ->
cache(File, wpart_xs) ->
XML = case xmerl_scan:file(File, [{encoding, "utf-8"}]) of
{error, Reason} ->
- erlang:error(Reason);
+ erlang:error(Reason, [File, wpart_xs]);
{XML3, _} ->
XML3
end,
@@ -98,7 +98,7 @@ cache(File, erlydtl_expander) ->
ets:insert(?MODULE, {File, {date(), time()}, Mod}),
Mod;
{error, Reason} ->
- erlang:error(Reason)
+ erlang:error(Reason, [File, erlydtl_expander])
end;
-cache(_File, Expander) ->
- erlang:error({unknown_expander, Expander}).
+cache(File, Expander) ->
+ erlang:error({unknown_expander, Expander}, [File, Expander]).

0 comments on commit 6786b23

Please sign in to comment.