Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13049] Titanium CLI - Picks up content of log output for colorizing

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionDuplicate
Resolution Date2013-03-13T18:24:36.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTooling
LabelsCLI
ReporterMitchell Amihod
AssigneeChris Barber
Created2013-03-11T18:00:35.000+0000
Updated2017-03-20T22:08:57.000+0000

Description

Problem description

The CLI is showing out error messages if catches the word "error" inside an object.

Steps to reproduce

Lets say I have object:
var foo = { 
  results: {a: "bar"},
  error: {x:'zeta'}
};
When I do something like:
Ti.API.warn(foo);
The console will pick up on the error key in foo, and not output it, but rather use it to colorize the terminal as error. This is the output I'm getting from the CLI:
[WARN] { 
[ERROR] =     {
[ERROR]         x = zeta;
[ERROR]     };
[ERROR]     results =     {
[ERROR]         a = bar;
[ERROR]     };
[ERROR] } 

Comments

  1. Chris Barber 2013-03-13

    Dupe of TIMOB-12809.
  2. Lee Morris 2017-03-20

    Closing ticket as duplicate.

JSON Source