If the last arg (in the Error position) is null, assume it's a null Error and

print "error=null" rather than "null=".


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5763 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2009-04-30 21:33:22 +00:00
parent d56ba51b49
commit 34a99c26c0
+2
View File
@@ -255,6 +255,8 @@ public class Log
var lastArg :Object = args.pop();
if (lastArg is Error) {
err = lastArg as Error; // ok, it's an error, we like those
} else if (lastArg == null) { // assume it's an error that's just null
args.push("error", lastArg); // print "error=null"
} else {
args.push(lastArg, ""); // what? Well, cope by pushing it back with a ""
}