Skip to content

Commit

Permalink
[#750] change Hobo::Error to the more specific Hobo::PermissionDenied…
Browse files Browse the repository at this point in the history
…Error in <view>
  • Loading branch information
bryanlarsen authored and ddnexus committed Nov 13, 2010
1 parent 9d56ffc commit cf3801c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hobo/lib/hobo/rapid/taglibs/rapid_core.dryml
Expand Up @@ -417,7 +417,7 @@ Assuming the context is a blog post...
<view:created_at no-wrapper/> -> June 09, 2008 15:36
-->
<def tag="view" attrs="inline, block, if-blank, no-wrapper, truncate"><%=
raise Hobo::Error, "view of non-viewable field '#{this_field}' of #{this_parent.typed_id rescue this_parent}" unless
raise Hobo::PermissionDeniedError, "view of non-viewable field '#{this_field}' of #{this_parent.typed_id rescue this_parent}" unless
can_view?

res = if this.nil? && if_blank.nil?
Expand Down

0 comments on commit cf3801c

Please sign in to comment.