Skip to content

Commit

Permalink
fix: resolve build
Browse files Browse the repository at this point in the history
  • Loading branch information
KagChi authored Sep 21, 2024
1 parent 6264d86 commit fa4d84e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cmd/server/main.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
package main

import (
"errors"
"fmt"
"github.com/davidbyttow/govips/v2/vips"
"github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/middleware/recover"
"github.com/gofiber/fiber/v2/middleware/logger"
"github.com/joho/godotenv"
"github.com/nezuchan/image-proxy/domain"
"github.com/nezuchan/image-proxy/impl/image_resizer/client"
i_http "github.com/nezuchan/image-proxy/impl/image_resizer/handler/http"
i_uc "github.com/nezuchan/image-proxy/impl/image_resizer/usecase"
Expand Down Expand Up @@ -38,9 +40,9 @@ func main() {
code = e.Code
}

return ctx.Status(code).JSON(&struct_type.ErrorResponse{
Message: "Something went wrong, please try again later.",
Error: err.Error(),
return ctx.Status(code).JSON(domain.ImageResizerHTTPResponse{
StatusCode: code,
Message: err.Error(),
})
},
})
Expand Down

0 comments on commit fa4d84e

Please sign in to comment.