appcelerator/titanium_mobile — pull request #3625 by mstepanov (2012-12-20 22:33:24+00:00)
Title: [TIMOB-10320] iOS: improved JS exception logging when thrown from Objective-C

[TIMOB-10320](https://jira.appcelerator.org/browse/TIMOB-10320)

Test instructions in JIRA.

Expected output is like
```javascript
[ERROR] Script Error {
backtrace = "#0 () at file://localhost/Users/max/Library/Application%20Support/iPhone%20Simulator/4.3.2/Applications/86EAB896-F4E9-4672-9426-D20F7FAED5F1/Titanium.app/app.js:29";
line = 13;
message = "Invalid type passed to function";
nativeLocation = "-[TiUIEmailDialogProxy open:] (TiUIEmailDialogProxy.m:63)";
nativeReason = "expected: NSArray or nil, was: NSCFString";
sourceId = 208722560;
sourceURL = "file://localhost/Users/max/Library/Application%20Support/iPhone%20Simulator/4.3.2/Applications/86EAB896-F4E9-4672-9426-D20F7FAED5F1/Titanium.app/app.js";
}

```