[Issue 15348] std.stdio.writef format specifier error message
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Dec 20 14:18:03 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=15348
berni44 <bugzilla at d-ecke.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla at d-ecke.de
--- Comment #2 from berni44 <bugzilla at d-ecke.de> ---
(In reply to ric from comment #0)
> The code below throws a FormatException but reports an error from the
> library source instead of reporting the error from the offending line in the
> user program.
That's not true. The last line contains the error in the user program. When
compiling with -g you would see there:
[...]
test.d:5 _Dmain [0x47437c1]
> Also, a more informative error message would help.
Yeah, something like "$ expected while parsing the format string" maybe?
--
More information about the Digitalmars-d-bugs
mailing list