Skip to content

Commit

Permalink
improve error messages
Browse files Browse the repository at this point in the history
Signed-off-by: Grant Linville <grant@acorn.io>
  • Loading branch information
g-linville authored and cjellick committed Sep 6, 2024
1 parent 965b1ab commit d97d564
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/engine/openapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (e *Engine) runOpenAPIRevamp(tool types.Tool, input string) (*Return, error
} else if !match {
// Report to the LLM that the operation was not found
return &Return{
Result: ptr(fmt.Sprintf("operation %s not found", operation)),
Result: ptr(fmt.Sprintf("ERROR: operation %s not found", operation)),
}, nil
}
}
Expand All @@ -92,7 +92,7 @@ func (e *Engine) runOpenAPIRevamp(tool types.Tool, input string) (*Return, error
if !found {
// Report to the LLM that the operation was not found
return &Return{
Result: ptr(fmt.Sprintf("operation %s not found", operation)),
Result: ptr(fmt.Sprintf("ERROR: operation %s not found", operation)),
}, nil
}

Expand All @@ -115,7 +115,7 @@ func (e *Engine) runOpenAPIRevamp(tool types.Tool, input string) (*Return, error
} else if !match {
// Report to the LLM that the operation was not found
return &Return{
Result: ptr(fmt.Sprintf("operation %s not found", operation)),
Result: ptr(fmt.Sprintf("ERROR: operation %s not found", operation)),
}, nil
}
}
Expand All @@ -140,7 +140,7 @@ func (e *Engine) runOpenAPIRevamp(tool types.Tool, input string) (*Return, error
} else if !found {
// Report to the LLM that the operation was not found
return &Return{
Result: ptr(fmt.Sprintf("operation %s not found", operation)),
Result: ptr(fmt.Sprintf("ERROR: operation %s not found", operation)),
}, nil
}

Expand Down

0 comments on commit d97d564

Please sign in to comment.