Changeset 4

Show
Ignore:
Timestamp:
11/29/04 08:41:10 (4 years ago)
Author:
athomas
Message:

Changed AddCommentMacro HTML error into a TracError?.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/macros/AddComment.py

    r2 r4  
    55from StringIO import StringIO 
    66from trac.WikiFormatter import wiki_to_html 
     7from trac.util import TracError 
    78 
    89def execute(hdf, args, env): 
     
    1617 
    1718    if readonly and not perm.has_permission(trac.perm.WIKI_ADMIN): 
    18         return "<div class='system-message'><strong>Error: Insufficient privileges to AddComment</strong></div>\n" 
     19        raise TracError('Error: Insufficient privileges to AddComment') 
    1920 
    2021    disabled = ''