Message11700

Author stefan.richthofer
Recipients daniele.trimarchi@coventor.com, stefan.richthofer
Date 2018-01-28.21:43:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1517175806.48.0.467229070634.issue2653@psf.upfronthosting.co.za>
In-reply-to
Content
Hello Daniele,
I can currently not allocate time to work on Jython issues and this error message issue is honestly fairly low priority compared to what else is on the tracker. That said, if it is important for you to get it fixed I would guide you through the process of fixing and creating a PR. If that turns out well I'd be happy to accept it.

To get you started, I think the error is probably generated here:
https://github.com/jythontools/jython/blob/master/src/org/python/core/io/FileIO.java#L96
You would have to assert that, e.g. by temporarily emitting a debug output from that code. Then I suppose, the FileNotFoundException fnfe need a finer analysis to capture the error case you observe. Finally you'd have to create a new if-branch there that calls Py.IOError with the appropriate errno code (Errno.EACCES I suppose).
History
Date User Action Args
2018-01-28 21:43:26stefan.richthofersetmessageid: <1517175806.48.0.467229070634.issue2653@psf.upfronthosting.co.za>
2018-01-28 21:43:26stefan.richthofersetrecipients: + stefan.richthofer, daniele.trimarchi@coventor.com
2018-01-28 21:43:26stefan.richthoferlinkissue2653 messages
2018-01-28 21:43:24stefan.richthofercreate