Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9953] BlackBerry: Fix logging/exception tags and exception output

GitHub Issuen/a
TypeStory
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-06-28T19:25:50.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.2.0
ComponentsBlackBerry
Labelssmall
ReporterDavid Lifshitz
AssigneeRussell McMahon
Created2012-07-12T12:26:36.000+0000
Updated2017-03-09T00:46:08.000+0000

Description

Currently, when we throw an exception while a file is being loaded by include or require, both files are shown in the message (eg "file1.js line 2: file2.js line 5: Missing argument"). We need to make changes so the following is true:

the exception has the [ERROR] tag

only the filename containing the actual error is shown

** might need to get rid of some TryCatch's ** might need to use Message::GetScriptResourceName

the filename shows the full path (minus the .../assets/)

an exception thrown from an event handler shows the filename and crashes the app (eg calling Ti.API.debug() with no params in a button handler)

Also need to clean/split up TiRootObject::executeScript and implement Ti.API.log in .js.

Comments

  1. Lee Morris 2017-03-09

    Closing ticket as fixed.

JSON Source