www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 773] New: Redundant "Error: " in std.conv.ConvError

reply d-bugmail puremagic.com writes:
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 digitalmars.com
        ReportedBy: deewiant 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);
    }
}


-- 
Dec 30 2006
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=773


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #1 from bugzilla digitalmars.com  2007-01-03 22:54 -------
Fixed DMD 1.00


-- 
Jan 03 2007