Skip to content

admin.hx:221 #5

@delahee

Description

@delahee

Sometime toString() call fails, I use something alike :

var str = null;
                try{ str = defval.toString();} catch(d:Dynamic){};
                if( str==null){
                    try { str = Std.string( defval ); }  catch (d:Dynamic) { };
                }
                if( str!=null)
                    defval = new Serialized(str).escape();
                else {
                    defval="#unknown";
                }

But I don't really get the whole picture so it might induce problems... so maybe you can do an improvement here :)

thx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions