Skip to content

Commit

Permalink
[#1664] Use field name in internationalized error.
Browse files Browse the repository at this point in the history
  • Loading branch information
icmurray committed Nov 2, 2012
1 parent 1c64b4c commit 9ebc002
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ckan/controllers/group.py
Expand Up @@ -505,7 +505,9 @@ def activity(self, id):
except NotFound:
abort(404, _('Group not found'))
except NotAuthorized:
abort(401, _('Unauthorized to read group %s') % id)
abort(401,
_('Unauthorized to read group {group_id}').format(
group_id=id))

# Add the group's activity stream (already rendered to HTML) to the
# template context for the group/read.html template to retrieve later.
Expand Down

0 comments on commit 9ebc002

Please sign in to comment.