Permalink
Browse files

[FIX] iPhone error message handling

  • Loading branch information...
1 parent 1e9f419 commit d8d257efdee13e71385f3df3d14c82e1e6393b19 @dbankier committed Aug 6, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 app/Resources/api/Utils.js
@@ -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');
@@ -50,4 +52,4 @@ if (Ti.UI.Android) {
}
}
-exports.extractExceptionData = extractExceptionData;
+exports.extractExceptionData = extractExceptionData;

0 comments on commit d8d257e

Please sign in to comment.