[Issue 4187] New: Error Message for std.file.remove outputting wrong file and line

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 14 16:41:16 PDT 2010


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

           Summary: Error Message for std.file.remove outputting wrong
                    file and line
           Product: D
           Version: 2.041
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: Jesse.K.Phillips+D at gmail.com
                CC: Jesse.K.Phillips+D at gmail.com


--- Comment #0 from Jesse Phillips <Jesse.K.Phillips+D at gmail.com> 2010-05-14 16:41:15 PDT ---
Using remove on a file that does not exist will result in a compiler error that
not clear what the issue is example below:

import std.file;

void main() {
   remove("IDontExist.txt");
}


std.file.FileException: In std\file.d(400), data file IDontExist.txt: The
operation completed successfully.

The exception is return the the file and line number in std.file rather than
the line in my code.

-- 
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