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:
@@ -255,6 +255,8 @@ public class Log
|
|||||||
var lastArg :Object = args.pop();
|
var lastArg :Object = args.pop();
|
||||||
if (lastArg is Error) {
|
if (lastArg is Error) {
|
||||||
err = lastArg as Error; // ok, it's an error, we like those
|
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 {
|
} else {
|
||||||
args.push(lastArg, ""); // what? Well, cope by pushing it back with a ""
|
args.push(lastArg, ""); // what? Well, cope by pushing it back with a ""
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user