Skip to content

Commit

Permalink
Add failure callback to tenaciousFetch
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettjstevens committed Aug 28, 2018
1 parent 446c1f2 commit 99f8a2a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/JBrowse/Model/XHRBlob.js
Expand Up @@ -59,6 +59,8 @@ function fetchBinaryRange(url, start, end) {
responseDate,
buffer: Buffer.from(arrayBuffer),
}))
}, res => {
throw new Error(`HTTP ${res.status} when fetching ${url} bytes ${start}-${end}`)
})
}
const globalCache = new HttpRangeFetcher({
Expand Down

0 comments on commit 99f8a2a

Please sign in to comment.