Fix simpleToString() per Tim's desire:

Cope with a bogus passed-in property name.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5820 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2009-06-09 18:16:16 +00:00
parent 4d01f18906
commit c3845a8b15
+6 -1
View File
@@ -414,7 +414,12 @@ public class StringUtil
if (appended) {
buf.append(", ");
}
buf.append(varName, "=", obj[varName]);
buf.append(varName, "=");
try {
buf.append(obj[varName]);
} catch (re :ReferenceError) {
buf.append("<ReferenceError>");
}
appended = true;
}
}