[Issue 773] New: Redundant "Error: " in std.conv.ConvError

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 30 04:12:02 PST 2006


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

           Summary: Redundant "Error: " in std.conv.ConvError
           Product: D
           Version: 0.178
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: diagnostic, patch
          Severity: trivial
          Priority: P5
         Component: Phobos
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: deewiant at gmail.com


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);
    }
}


-- 



More information about the Digitalmars-d-bugs mailing list