Skip to content

Commit fa4d84e

Browse files
authored
fix: resolve build
1 parent 6264d86 commit fa4d84e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

cmd/server/main.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
package main
22

33
import (
4+
"errors"
45
"fmt"
56
"github.com/davidbyttow/govips/v2/vips"
67
"github.com/gofiber/fiber/v2"
78
"github.com/gofiber/fiber/v2/middleware/recover"
89
"github.com/gofiber/fiber/v2/middleware/logger"
910
"github.com/joho/godotenv"
11+
"github.com/nezuchan/image-proxy/domain"
1012
"github.com/nezuchan/image-proxy/impl/image_resizer/client"
1113
i_http "github.com/nezuchan/image-proxy/impl/image_resizer/handler/http"
1214
i_uc "github.com/nezuchan/image-proxy/impl/image_resizer/usecase"
@@ -38,9 +40,9 @@ func main() {
3840
code = e.Code
3941
}
4042

41-
return ctx.Status(code).JSON(&struct_type.ErrorResponse{
42-
Message: "Something went wrong, please try again later.",
43-
Error: err.Error(),
43+
return ctx.Status(code).JSON(domain.ImageResizerHTTPResponse{
44+
StatusCode: code,
45+
Message: err.Error(),
4446
})
4547
},
4648
})

0 commit comments

Comments
 (0)