Summary: std.format needs better exception messages
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos

--- Comment #0 from Andrej Mitrovic <> 2012-03-08 
17:53:14 PST ---
import std.string;

void main()
    string res = format("%s %s", 1);

std.format.FormatException@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@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

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to