Skip to content

Commit

Permalink
Give a better error message for a deleted template
Browse files Browse the repository at this point in the history
  • Loading branch information
choptastic committed Jan 31, 2017
1 parent 9a4c96f commit 472f8a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/elements/layout/element_template.erl
Expand Up @@ -80,6 +80,7 @@ is_time_to_recache(File, FileAtom) ->

%% Finally if the file's last modification date is after the last time it
%% was recached, we need to recache it.
?WF_IF(LastModified==0,wf:warning("File appears to be deleted or has no modified time: ~s",[File])),
LastModified > LastRecached.

parse_template(File) ->
Expand Down

0 comments on commit 472f8a1

Please sign in to comment.