Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
From: Alan G Isaac <alan.isaac@gm...> - 2009-07-02 20:44:57
> On Thu, Jul 2, 2009 at 14:36, Alan G Isaac<alan.isaac@...> wrote:
>> In the `run` method of the `include` directive we find
>> the following response to an IOError::
>> raise self.severe('Problems with "%s" directive path:\n%s: %s.'
>> % (self.name, error.__class__.__name__, error))
>> Could this be changed to provide the filename? E.g. ::
>> errmsg = """Problem with "%s" directive.
>> Cannot handle path "%s".
>> %s: %s."""%(self.name, path, error.__class__.__name__, error)
>> raise self.severe(errmsg)
On 7/2/2009 4:03 PM David Goodger apparently wrote:
> Not without some justification. The error itself should include the
> path to the file, and there is no need to duplicate that info. If it
> doesn't, please show some evidence.
Output below. Is that enough,
or did you want the test files?
(Btw, the error is correct, but without the
filename it was a pain to find, since I have
a lot of includes.)
E:\current\test>C:\Python26\Scripts\rst2mathml.py --verbose --strip-comments --tab-width=4 --stylesheet-path=test.css
C:\Python26\lib\site-packages\docutils\parsers\rst\__init__.py:178: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
self.message = message
C:\Python26\lib\site-packages\docutils\parsers\rst\states.py:2065: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
test.rst:: (SEVERE/4) Problems with "include" directive path:
IOError: (2, 'No such file or directory').
Exiting due to level-4 (SEVERE) system message.