remove some debugging prints, gofmt
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
474a28663f
commit
918246ed72
|
@ -114,14 +114,13 @@ func RunCGI(
|
|||
scriptName = scriptName[:len(scriptName)-1]
|
||||
}
|
||||
|
||||
cmd := exec.CommandContext(ctx, "./" + basename)
|
||||
cmd := exec.CommandContext(ctx, "./"+basename)
|
||||
cmd.Env = prepareCGIEnv(ctx, req, scriptName, pathInfo)
|
||||
cmd.Dir = dirPath
|
||||
|
||||
responseBuffer := &bytes.Buffer{}
|
||||
cmd.Stdout = responseBuffer
|
||||
|
||||
fmt.Printf("running %s in %s\n", basename, dirPath)
|
||||
if err := cmd.Run(); err != nil {
|
||||
var exErr *exec.ExitError
|
||||
if errors.As(err, &exErr) {
|
||||
|
@ -133,7 +132,6 @@ func RunCGI(
|
|||
|
||||
response, err := gemini.ParseResponse(responseBuffer)
|
||||
if err != nil {
|
||||
fmt.Printf("response: %q\n", responseBuffer)
|
||||
return gemini.Failure(err)
|
||||
}
|
||||
return response
|
||||
|
|
Reference in New Issue