Commit 71212b8b authored by Yannis Barlas's avatar Yannis Barlas

Merge branch 'rethrow-error' into 'master'

Rethrow the caught error

See merge request !3
parents a793cfa8 270eca6c
......@@ -34,7 +34,10 @@ export function htmlToEpub(bookId) {
opts
).then(
res => res.json().then(data => dispatch(htmlToEpubSuccess(data.path))),
err => dispatch(htmlToEpubFailure(err))
err => {
dispatch(htmlToEpubFailure(err))
throw err
}
)
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment