Bug 773 – Redundant "Error: " in std.conv.ConvError

Status
RESOLVED
Resolution
FIXED
Severity
trivial
Priority
P5
Component
phobos
Product
D
Version
D1 (retired)
Platform
All
OS
All
Creation time
2006-12-30T06:12:00Z
Last change time
2014-02-15T13:26:33Z
Keywords
diagnostic, patch
Assigned to
bugzilla
Creator
matti.niemenmaa+dbugzilla

Comments

Comment #0 by matti.niemenmaa+dbugzilla — 2006-12-30T06:12:01Z
std.conv.ConvError looks like the following: class ConvError : Error { this(char[] s) { super("Error: conversion " ~ s); } } Since "Error: " is output in internal.dmain2 anyway, having it in the constructor as well makes for ugly error messages like "Error: Error: conversion foo". Instead, just have: class ConvError : Error { this(char[] s) { super("conversion " ~ s); } }
Comment #1 by bugzilla — 2007-01-03T22:54:49Z
Fixed DMD 1.00