Skip to content

Commit

Permalink
fix: bug in case of creating a new service
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatsuki3939 committed Sep 28, 2023
1 parent 371215c commit 5192045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/core/serve_http.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func HttpSet(c echo.Context, ctx context.Context, gogit *gogit.Git, scfg *ServeC
reqBody.Value = req["value"].(map[string]interface{})
inputPath := filepath.Clean(filepath.Join(scfg.ConfigRootPath, reqBody.Path, "input.cue"))
buf, err := os.ReadFile(inputPath)
if err != nil {
if err != nil && !os.IsNotExist(err) {
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("HttpSet error: ReadFile: %v", err))
}

Expand Down

0 comments on commit 5192045

Please sign in to comment.