Skip to content

Commit 590d6ef

Browse files
Update pkg/openapi/run.go
Co-authored-by: Tyler Slaton <[email protected]> Signed-off-by: Grant Linville <[email protected]>
1 parent 2e89e05 commit 590d6ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: pkg/openapi/run.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func Run(operationID, defaultHost, args string, t *openapi3.T, envs []string) (s
3939
validationResult, err := gojsonschema.Validate(gojsonschema.NewStringLoader(schemaJSON), gojsonschema.NewStringLoader(args))
4040
if err != nil {
4141
// We don't return an error here because we want the LLM to be able to maintain control and try again.
42-
return "ERROR: failed to validate arguments. Make sure your arguments are valid JSON.", false, nil
42+
return fmt.Sprintf("ERROR: failed to validate arguments. Make sure your arguments are valid JSON. %v", err), false, nil
4343
}
4444

4545
if !validationResult.Valid() {

0 commit comments

Comments
 (0)