{ "id": "110971", "key": "TIMOB-13049", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2013-03-13T18:24:36.000+0000", "created": "2013-03-11T18:00:35.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "CLI" ], "versions": [], "issuelinks": [ { "id": "26692", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "109983", "key": "TIMOB-12809", "fields": { "summary": "CLI: iOS log output gets munged", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-20T22:08:57.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10207", "name": "Tooling" } ], "description": "h2. Problem description\r\n\r\nThe CLI is showing out error messages if catches the word \"error\" inside an object.\r\n\r\nh2. Steps to reproduce\r\n\r\nLets say I have object:\r\n\r\n{code}\r\nvar foo = { \r\n results: {a: \"bar\"},\r\n error: {x:'zeta'}\r\n};\r\n{code}\r\n\r\nWhen I do something like:\r\n{code}\r\nTi.API.warn(foo);\r\n{code}\r\n\r\nThe console will pick up on the error key in foo, and not output it, but \r\nrather use it to colorize the terminal as error.\r\n\r\nThis is the output I'm getting from the CLI:\r\n\r\n{code}\r\n[WARN] { \r\n[ERROR] = {\r\n[ERROR] x = zeta;\r\n[ERROR] };\r\n[ERROR] results = {\r\n[ERROR] a = bar;\r\n[ERROR] };\r\n[ERROR] } \r\n{code}", "attachment": [], "flagged": false, "summary": "Titanium CLI - Picks up content of log output for colorizing", "creator": { "name": "meeech", "key": "meeech", "displayName": "Mitchell Amihod", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "meeech", "key": "meeech", "displayName": "Mitchell Amihod", "active": true, "timeZone": "America/New_York" }, "environment": "Titanium CLI 3.0.23,\r\nOSX", "comment": { "comments": [ { "id": "242035", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Dupe of TIMOB-12809.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-03-13T18:24:36.000+0000", "updated": "2013-03-13T18:24:36.000+0000" }, { "id": "414051", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T22:08:57.000+0000", "updated": "2017-03-20T22:08:57.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }