itinance / itinance/react-native-fs
downloadFile: wrong error message on http 404
Open
- Dominant language
- C++
- Stars
- 5k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
Steps to reproduce:
```
async test() {
const options = {
fromUrl: 'http://google.com/not_found',
toFile: RNFS.DocumentDirectoryPath + '/test',
progressDivider: 2,
};
await RNFS.downloadFile(options).promise;
}
```
request for 'http://google.com/not_found' returns 404 Not found, but error message in catch is
ENOENT: no such file or directory, open '/data/user/0/com.test/files/test'
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.