[Issue 7675] New: std.format needs better exception messages
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Mar 8 17:53:10 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7675
Summary: std.format needs better exception messages
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: andrej.mitrovich at gmail.com
--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-03-08 17:53:14 PST ---
import std.string;
void main()
{
string res = format("%s %s", 1);
}
std.format.FormatException at std\format.d(62): format error
format() should verify that the count of parameters matches the format
specifier and give a nice error message like this:
std.format.FormatException at std\format.d(62): format error: Expected 2
parameters, got 1.
format() is one of the most used functions in Phobos so I think this is pretty
important.
--
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