Skip to content

Commit

Permalink
[FIX] iPhone error message handling
Browse files Browse the repository at this point in the history
  • Loading branch information
dbankier committed Aug 6, 2012
1 parent 1e9f419 commit d8d257e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/Resources/api/Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ if (Ti.UI.Android) {
}
} else if (Ti.UI.iOS) {
extractExceptionData = function(e) {

if (e.file === undefined) {
return e.toString();
}
var parts = e.file.split('/');
var file;
var resIndexOf = parts.indexOf('Resources');
Expand All @@ -50,4 +52,4 @@ if (Ti.UI.Android) {
}
}

exports.extractExceptionData = extractExceptionData;
exports.extractExceptionData = extractExceptionData;

0 comments on commit d8d257e

Please sign in to comment.