File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ func routeDoPushV1(c *fiber.Ctx) error {
7676 // parse url path (highest priority)
7777 pathParams , err := extractUrlPathParams (c )
7878 if err != nil {
79- return c .Status (500 ).JSON (failed (400 , "url path parse failed: %v" , err ))
79+ return c .Status (400 ).JSON (failed (400 , "url path parse failed: %v" , err ))
8080 }
8181 for key , val := range pathParams {
8282 params [key ] = val
@@ -102,7 +102,7 @@ func routeDoPushV2(c *fiber.Ctx) error {
102102 // parse url path (highest priority)
103103 pathParams , err := extractUrlPathParams (c )
104104 if err != nil {
105- return c .Status (500 ).JSON (failed (400 , "url path parse failed: %v" , err ))
105+ return c .Status (400 ).JSON (failed (400 , "url path parse failed: %v" , err ))
106106 }
107107 for key , val := range pathParams {
108108 params [key ] = val
You can’t perform that action at this time.
0 commit comments