Project: titanium
Issue TIMOB-9953: BlackBerry: Fix logging/exception tags and exception output
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.
Story points: 2