Skip to content

Commit

Permalink
Refine notice
Browse files Browse the repository at this point in the history
  • Loading branch information
n0vad3v committed Nov 4, 2023
1 parent a3c68c8 commit 08f5dfa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions encoder/encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package encoder

import (
"errors"
"fmt"
"os"
"path"
"runtime"
Expand Down Expand Up @@ -127,7 +126,7 @@ func convertImage(raw, optimized, imageType string, extraParams config.ExtraPara
}
// Remove converted file after convertion
if converted {
fmt.Println("delete jpgRaw", convertedRaw)
log.Infoln("Removing intermediate conversion file:", convertedRaw)
err := os.Remove(convertedRaw)
if err != nil {
log.Warnln("failed to delete converted file", err)
Expand Down
2 changes: 1 addition & 1 deletion handler/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func Convert(c *fiber.Ctx) error {
// Check the original image for existence,
if !helper.ImageExists(rawImageAbs) {
helper.DeleteMetadata(reqURIwithQuery, targetHostName)
msg := "image not found"
msg := "Image not found!"
_ = c.Send([]byte(msg))
log.Warn(msg)
_ = c.SendStatus(404)
Expand Down

0 comments on commit 08f5dfa

Please sign in to comment.