Using epubgo to handle epubs

This commit is contained in:
Las Zenow 2013-04-01 14:05:04 +02:00
parent d46c3b72b6
commit d994d6b91f
6 changed files with 167 additions and 108 deletions

View file

@ -44,7 +44,7 @@ func uploadHandler(w http.ResponseWriter, r *http.Request) {
title, err := ParseFile(path)
if err != nil {
os.Remove(NEW_PATH + path)
sess.Notify("Problem uploading!", "The file '"+path+"' is not a well formed epub", "error")
sess.Notify("Problem uploading!", "The file '"+path+"' is not a well formed epub: "+err.Error(), "error")
} else {
uploaded = uploaded + " '" + title + "'"
}