From 34df1b8b26d26bc0a1dd2601f0cf8a041f2737e0 Mon Sep 17 00:00:00 2001 From: Grant Linville Date: Thu, 5 Sep 2024 20:17:58 -0400 Subject: [PATCH] improve error messages Signed-off-by: Grant Linville --- pkg/engine/openapi.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/engine/openapi.go b/pkg/engine/openapi.go index 0bd5f599..a951bd37 100644 --- a/pkg/engine/openapi.go +++ b/pkg/engine/openapi.go @@ -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 } } @@ -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 } @@ -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 } } @@ -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 }