{"action":"created","issue":{"url":"https://api.github.com/repos/plrthink/react-native-zip-archive/issues/3","repository_url":"https://api.github.com/repos/plrthink/react-native-zip-archive","labels_url":"https://api.github.com/repos/plrthink/react-native-zip-archive/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/plrthink/react-native-zip-archive/issues/3/comments","events_url":"https://api.github.com/repos/plrthink/react-native-zip-archive/issues/3/events","html_url":"https://github.com/plrthink/react-native-zip-archive/issues/3","id":118737773,"number":3,"title":"Error Not Being Raised for Non Existent Zip","user":{"login":"cancan101","id":51059,"avatar_url":"https://avatars.githubusercontent.com/u/51059?v=3","gravatar_id":"","url":"https://api.github.com/users/cancan101","html_url":"https://github.com/cancan101","followers_url":"https://api.github.com/users/cancan101/followers","following_url":"https://api.github.com/users/cancan101/following{/other_user}","gists_url":"https://api.github.com/users/cancan101/gists{/gist_id}","starred_url":"https://api.github.com/users/cancan101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cancan101/subscriptions","organizations_url":"https://api.github.com/users/cancan101/orgs","repos_url":"https://api.github.com/users/cancan101/repos","events_url":"https://api.github.com/users/cancan101/events{/privacy}","received_events_url":"https://api.github.com/users/cancan101/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/plrthink/react-native-zip-archive/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-11-25T01:14:02Z","updated_at":"2016-02-29T18:06:41Z","closed_at":null,"body":"Tis is calling the `then` rather than `catch` where the specified file does not exist:\r\n```js\r\n   ZipArchive.unzip(RNFS.CachesDirectoryPath + '/XXXXX.zip', RNFS.CachesDirectoryPath + '/YYYY')\r\n      .then((o) => {\r\n        alert('o: ' + o)\r\n      })\r\n      .catch((error) => {\r\n        alert('E: ' + error)\r\n      });\r\n```"},"comment":{"url":"https://api.github.com/repos/plrthink/react-native-zip-archive/issues/comments/190314505","html_url":"https://github.com/plrthink/react-native-zip-archive/issues/3#issuecomment-190314505","issue_url":"https://api.github.com/repos/plrthink/react-native-zip-archive/issues/3","id":190314505,"user":{"login":"WestleyArgentum","id":1900307,"avatar_url":"https://avatars.githubusercontent.com/u/1900307?v=3","gravatar_id":"","url":"https://api.github.com/users/WestleyArgentum","html_url":"https://github.com/WestleyArgentum","followers_url":"https://api.github.com/users/WestleyArgentum/followers","following_url":"https://api.github.com/users/WestleyArgentum/following{/other_user}","gists_url":"https://api.github.com/users/WestleyArgentum/gists{/gist_id}","starred_url":"https://api.github.com/users/WestleyArgentum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WestleyArgentum/subscriptions","organizations_url":"https://api.github.com/users/WestleyArgentum/orgs","repos_url":"https://api.github.com/users/WestleyArgentum/repos","events_url":"https://api.github.com/users/WestleyArgentum/events{/privacy}","received_events_url":"https://api.github.com/users/WestleyArgentum/received_events","type":"User","site_admin":false},"created_at":"2016-02-29T18:06:41Z","updated_at":"2016-02-29T18:06:41Z","body":"Ah, I realized I can use xcode to step through the code and my problem was with directories. Would be really cool to have those errors raised through `.catch` though\r\n\r\nThanks for your help!"}}