Skip to content

Commit

Permalink
Fix syntax
Browse files Browse the repository at this point in the history
Signed-off-by: Lorenzo Mangani <[email protected]>
  • Loading branch information
lmangani authored Apr 13, 2023
1 parent b2c0366 commit 3e403c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fluxpipe-server.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func postQuery(c echo.Context) error {
if err != nil {
c.Response().Header().Set(echo.HeaderContentType, "application/json; charset=utf-8")
c.Response().Header().Set("x-platform-error-code", "invalid")
return c.String(400, fmt.Sprintf(`{"code":"invalid","message":"%v"}`, err.Error())
return c.String(400, fmt.Sprintf(`{"code":"invalid","message":"%v"}`, err.Error()))
} else {
return c.String(http.StatusOK, res)
}
Expand All @@ -98,7 +98,7 @@ func postQuery(c echo.Context) error {
if err != nil {
c.Response().Header().Set(echo.HeaderContentType, "application/json; charset=utf-8")
c.Response().Header().Set("x-platform-error-code", "invalid")
return c.String(400, fmt.Sprintf(`{"code":"invalid","message":"%v"}`, err.Error())
return c.String(400, fmt.Sprintf(`{"code":"invalid","message":"%v"}`, err.Error()))
} else {
return c.String(http.StatusOK, res)
}
Expand Down

0 comments on commit 3e403c9

Please sign in to comment.