Modify ↓
Opened 8 years ago
Closed 8 years ago
#12555 closed defect (fixed)
TracError: No filespec given
Reported by: | Ryan J Ollos | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Milestone: | 1.0.13 |
Component: | wiki system | Version: | |
Severity: | normal | Keywords: | imagemacro |
Cc: | Branch: | ||
Release Notes: |
|
||
API Changes: | |||
Internal Changes: |
Description
We should return a system_message
and log the error rather than raising an exception:
[pid 12594 140268838594304] 2016-08-06 23:07:23,402 Trac[formatter] ERROR: Macro Image(attachment:appveyor-kb-logo.png:wiki:TracDev/AutomaticBuilds) failed: Traceback (most recent call last): File "/usr/local/virtualenv/1.1dev/lib/python2.7/site-packages/trac/wiki/formatter.py", line 802, in _macro_formatter return macro.ensure_inline(macro.process(args)) File "/usr/local/virtualenv/1.1dev/lib/python2.7/site-packages/trac/wiki/formatter.py", line 379, in process text = self.processor(text) File "/usr/local/virtualenv/1.1dev/lib/python2.7/site-packages/trac/wiki/formatter.py", line 351, in _macro_processor text) File "/usr/local/virtualenv/1.1dev/lib/python2.7/site-packages/trac/wiki/macros.py", line 677, in expand_macro raise TracError(_("No filespec given")) TracError: No filespec given
Attachments (0)
Change History (5)
comment:1 by , 8 years ago
Release Notes: | modified (diff) |
---|
comment:2 by , 8 years ago
It looks like I accidentally pushed this branch to the GitHub mirror. Deleted now.
comment:3 by , 8 years ago
I think setting invalid url to pushurl
could prevent accidental pushing like this:
$ git remote set-url --push mirror no_push $ git remote -v | grep mirror mirror http://svn.edgewall.org/git/trac/mirror (fetch) mirror no_push (push) $ git push mirror x fatal: 'no_push' does not appear to be a git repository fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. $ git fetch mirror $ echo $? 0 # git-fetch works
comment:5 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Proposed changes in log:rjollos.git:t12555.