Modify ↓
Opened 11 years ago
Closed 10 years ago
#11153 closed defect (fixed)
Catch exception and render more subtle message when node doesn't exist
Reported by: | Ryan J Ollos | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Component: | ChangeLogMacro |
Severity: | normal | Keywords: | |
Cc: | Steffen Hoffmann | Trac Release: |
Description (last modified by )
When the path in ChangeLogMacro's argument points to non-existing node, we should raise a more subtle message than (captured from GoogleMapMacro@44#RecentChangesintheDevelopBranch):
Attachments (1)
Change History (6)
comment:1 Changed 11 years ago by
Changed 11 years ago by
Attachment: | NoNode.png added |
---|
comment:2 Changed 11 years ago by
Description: | modified (diff) |
---|
comment:3 Changed 11 years ago by
Another issue is that we end up with errors in the logs,
2013-08-16 04:24:51,138 Trac[formatter] ERROR: Macro ChangeLog(googlemapmacro/dev/, 3) failed: Traceback (most recent call last): File "/srv/trac-hacks.org/pve/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/wiki/formatter.py", line 765, in _macro_formatter return macro.ensure_inline(macro.process(args)) File "/srv/trac-hacks.org/pve/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/wiki/formatter.py", line 356, in process text = self.processor(text) File "/srv/trac-hacks.org/pve/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/wiki/formatter.py", line 343, in _macro_processor text) File "/srv/trac-hacks.org/pve/lib/python2.6/site-packages/ChangeLogMacro-0.2_r12377-py2.6.egg/changelog/ChangeLogMacro.py", line 123, in expand_macro node = repo.get_node(path, rev) File "/srv/trac-hacks.org/pve/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/versioncontrol/cache.py", line 291, in get_node return self.repos.get_node(path, self.normalize_rev(rev)) File "/srv/trac-hacks.org/pve/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/tracopt/versioncontrol/svn/svn_fs.py", line 481, in get_node return SubversionNode(path, rev, self, self.pool) File "/srv/trac-hacks.org/pve/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/tracopt/versioncontrol/svn/svn_fs.py", line 733, in __init__ raise NoSuchNode(path, rev) NoSuchNode: No node googlemapmacro/dev at revision 13353
I wonder if we really want the logs filled with errors due to invalid macro calls.
comment:4 Changed 10 years ago by
Status: | new → accepted |
---|
Note: See
TracTickets for help on using
tickets.
(I will have to upload the attachment later due to #11151)