From 34a99c26c0a65015c860b8dfe9c05833c1e58f01 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Thu, 30 Apr 2009 21:33:22 +0000 Subject: [PATCH] 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 --- src/as/com/threerings/util/Log.as | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/as/com/threerings/util/Log.as b/src/as/com/threerings/util/Log.as index 381157c90..5d740af3b 100644 --- a/src/as/com/threerings/util/Log.as +++ b/src/as/com/threerings/util/Log.as @@ -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 "" }