Changeset 1055

Show
Ignore:
Timestamp:
02/10/08 16:12:55 (7 months ago)
Author:
teqdruid
Message:

Forgot about the other encoding cases for exception

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/mango/xml/sax/parser/teqXML.d

    r1054 r1055  
    531531                    str = chr; 
    532532                } else { 
     533                    char[] str8; 
     534                    static if (is(T == char)) { 
     535                        str8 = str; 
     536                    } else { 
     537                        str8 = tango.text.convert.Utf.toString(str); 
     538                    } 
    533539                    throw new TeqXMLException( 
    534                         "Cannot resolve entity '" ~ ent ~ "'"); 
     540                        "Cannot resolve entity '" ~ str8 ~ "'"); 
    535541                } 
    536542            } else {