Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28053] iOS: Ti.API.info() not displaying errors correctly

GitHub Issuen/a
TypeBug
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 9.0.3
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterJosh Longton
AssigneeVijay Singh
Created2020-07-27T14:48:41.000+0000
Updated2020-07-30T02:30:48.000+0000

Description

Ti.API.info() not parsing the error message correctly and displaying to json instead Sample; {noformat} try { throw new Error('things'); } catch (error) { Ti.API.info(error); } {noformat} Expected; {noformat} [INFO] Error: things [INFO] at doClick (alloy/controllers/index.js:56:22) {noformat} Actual; {noformat} [INFO] { [INFO] toJSON = { [INFO] }; [INFO] } {noformat}

Comments

  1. Vijay Singh 2020-07-27

    [~jlongton] Was it working, as expected, in any previous SDK?
  2. Josh Longton 2020-07-28

    Not from what I was able to test, I would expect it to work the same as console.log()

JSON Source