frontend/js/core/fetch.js in trestle-0.10.0 vs frontend/js/core/fetch.js in trestle-0.10.1
- old
+ new
@@ -11,10 +11,11 @@
return response
})
.catch(response => {
const title = `${response.status} (${response.statusText})`
response.text().then(content => ErrorModal.show({ title, content }))
+ throw response
})
}
export function fetchTurboStream (url, options = {}) {
options = {
@@ -27,6 +28,7 @@
}
return fetchWithErrorHandling(url, options)
.then(response => response.text())
.then(html => renderStreamMessage(html))
+ .catch(() => { /* Error already handled */ })
}