We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e94606 commit b32a091Copy full SHA for b32a091
traceloop-sdk/prompt_registry.go
@@ -14,7 +14,7 @@ import (
14
func (instance *Traceloop) populatePromptRegistry() {
15
resp, err := instance.fetchPathWithRetry(PromptsPath, instance.config.BackoffConfig.MaxRetries)
16
if err != nil {
17
- fmt.Println(err)
+ fmt.Println("Failed to fetch prompts", err)
18
return
19
}
20
defer resp.Body.Close()
@@ -24,6 +24,7 @@ func (instance *Traceloop) populatePromptRegistry() {
24
err = decoder.Decode(&response)
25
26
fmt.Println("Failed to decode response", err)
27
+ return
28
29
30
for _, prompt := range response.Prompts {
0 commit comments