Skip to content

Removing broken links, promise never resolves #24

@chmac

Description

@chmac

Here's my example:

cache.add('http://google.com/404.json')
cache.download(()=> {}).then(() => {}, (failedUrls) => { console.log('failedUrls', failedUrls) })
// cache.remove('http://google.com/404.json') // <-- this works
cache.remove('http://google.com/404.json').then(() => {console.log('success')}, () => {console.log('failure')})

Neither success nor failure gets logged. My guess from looking at this is that the filesystem promise never resolves / rejects if the file does not exist. Come to think of it, maybe the bug report belongs there?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions