File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
package main
2
2
3
3
import (
4
+ "errors"
4
5
"fmt"
5
6
"github.com/davidbyttow/govips/v2/vips"
6
7
"github.com/gofiber/fiber/v2"
7
8
"github.com/gofiber/fiber/v2/middleware/recover"
8
9
"github.com/gofiber/fiber/v2/middleware/logger"
9
10
"github.com/joho/godotenv"
11
+ "github.com/nezuchan/image-proxy/domain"
10
12
"github.com/nezuchan/image-proxy/impl/image_resizer/client"
11
13
i_http "github.com/nezuchan/image-proxy/impl/image_resizer/handler/http"
12
14
i_uc "github.com/nezuchan/image-proxy/impl/image_resizer/usecase"
@@ -38,9 +40,9 @@ func main() {
38
40
code = e .Code
39
41
}
40
42
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 (),
44
46
})
45
47
},
46
48
})
You can’t perform that action at this time.
0 commit comments