mirror of
https://github.com/celogeek/go-comic-converter.git
synced 2025-05-25 00:02:37 +02:00
use fatalf instead
This commit is contained in:
parent
291c8983a4
commit
47205b16be
@ -83,7 +83,7 @@ func (e EPUBImageProcessor) Load() (images []epubimage.EPUBImage, err error) {
|
|||||||
e.EPUBOptions.Image.AutoSplitDoublePage && !e.EPUBOptions.Image.KeepDoublePageIfSplit) {
|
e.EPUBOptions.Image.AutoSplitDoublePage && !e.EPUBOptions.Image.KeepDoublePageIfSplit) {
|
||||||
if err = imgStorage.Add(img.EPUBImgPath(), img.Raw, e.Image.Quality); err != nil {
|
if err = imgStorage.Add(img.EPUBImgPath(), img.Raw, e.Image.Quality); err != nil {
|
||||||
_ = bar.Close()
|
_ = bar.Close()
|
||||||
utils.Fatalln("error with %s: %s", input.Name, err)
|
utils.Fatalf("error with %s: %s", input.Name, err)
|
||||||
}
|
}
|
||||||
// do not keep raw image except for cover
|
// do not keep raw image except for cover
|
||||||
if img.Id > 0 {
|
if img.Id > 0 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user