Postpone better handling of complex objects
This commit is contained in:
parent
2424091f23
commit
67219b24fa
|
@ -51,7 +51,6 @@ window.onload = function () {
|
|||
// TODO: Cool object output and errors with stack traces?
|
||||
function tryString (value) {
|
||||
try {
|
||||
if (value instanceof Error && value.message) return removeCarriageReturns(value.message);
|
||||
return removeCarriageReturns(new String(value).toString());
|
||||
} catch (err) {
|
||||
// Give up, just print the type.
|
||||
|
@ -103,7 +102,7 @@ window.onload = function () {
|
|||
stack += '\n ';
|
||||
current = current.caller;
|
||||
}
|
||||
console.log(stack.trim())
|
||||
console.log(stack.trim());
|
||||
}
|
||||
|
||||
var inputLogger = makeLogger('lightBlue');
|
||||
|
|
Loading…
Reference in New Issue