Skip to content

Commit

Permalink
Encourage folks to read the source when a file doesn't have any POD
Browse files Browse the repository at this point in the history
Previously it rendered as "Error rendering POD for ... - ", with no
explanation.  See #1139.
  • Loading branch information
tsibley committed Mar 28, 2014
1 parent 21b3bfc commit ad28897
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion root/pod.html
Expand Up @@ -39,7 +39,12 @@
<div class="pod content">
<% IF pod %>
<% pod.replace(/<pre><code>/, '<pre class="brush: pl; class-name: \'highlight\'; toolbar: false; gutter: false; metacpan-verbatim">').replace(/<\/code><\/pre>/, '</pre>') | none %>
<% ELSE %>
<% ELSIF pod_error %>
<p class="pod-error">Error rendering POD for <code><% module.name %></code> - <% pod_error %></p>
<% ELSE %>
<p class="pod-error">
No POD found for <code><% module.name %></code>.
Time to <a href="/source/<% module.author %>/<% module.release %>/<% module.path %>">read the source</a>?
</p>
<% END %>
</div>

0 comments on commit ad28897

Please sign in to comment.