Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-13049

Titanium CLI - Picks up content of log output for colorizing

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Tooling
    • Labels:
    • Environment:

      Titanium CLI 3.0.23,
      OSX

      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] } 
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cbarber Chris Barber
                Reporter:
                meeech Mitchell Amihod
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-15882
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration