livrereader / livre

An eBook reader built with Electron
37 stars 6 forks source link

Handle errors when improper path passed to loadBook() #14

Closed jdormit closed 7 years ago

jdormit commented 7 years ago

Currently, it logs an error to the console and the screen remains blank. Expected behavior: display an error message to the user and render the "recently viewed" screen

jdormit commented 7 years ago

Fixed via workaround in 5fb70a0. Still unable to catch the book.open() error; however, we simply intercept the call upstream and ensure that the path exists and is a valid .epub file.