Skip to content

Commit

Permalink
Fix server crash on failed to extract epub image advplyr#3889
Browse files Browse the repository at this point in the history
  • Loading branch information
advplyr committed Jan 24, 2025
1 parent c735fea commit d4ba8b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/utils/parsers/parseEpubMetadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ async function extractCoverImage(epubPath, epubImageFilepath, outputCoverPath) {
return false
})

await zip.close()
await zip.close().catch((error) => {
Logger.error(`[parseEpubMetadata] Failed to close zip`, error)
})

return success
}
Expand Down

0 comments on commit d4ba8b9

Please sign in to comment.