[Issue 4911] Bad error messages from attempts to write into read-only File

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Sep 21 18:07:12 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4911



--- Comment #1 from bearophile_hugs at eml.cc 2010-09-21 18:06:34 PDT ---
I think in Phobos there is not (yet) a function to find the line number and
module name of the precedent stack frame, of the caller, so probably the
"test.d(5)" can't be generated in the error message, andthe programmer has to
read the stack trace.

So a more realistic error message (plus stack trace) is:

FileIOException at ...\dmd\src\phobos\std\stdio.d(508): attempt to write into
read-only file "test.raw".

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list