[TIMOB-28053] iOS: Ti.API.info() not displaying errors correctly
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 9.0.3 |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Josh Longton |
Assignee | Vijay Singh |
Created | 2020-07-27T14:48:41.000+0000 |
Updated | 2020-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}
[~jlongton] Was it working, as expected, in any previous SDK?
Not from what I was able to test, I would expect it to work the same as
console.log()