]> git.giacomolli.uk - onechat/blobdiff - agent.go
Check test assertions with testifylint
[onechat] / agent.go
index 1d76c5b943b495f7b36e0599b4b3be8f51af32d1..3fc954672e9038e9c2a154ced280d419def63a0a 100644 (file)
--- a/agent.go
+++ b/agent.go
@@ -87,7 +87,7 @@ func (a *Agent) CacheKey() string {
 func (a *Agent) Prompt() (string, error) {
        instructions, err := a.instructions()
        if err != nil {
-               return "", err
+               return "", fmt.Errorf("read prompt instructions: %w", err)
        }
 
        path, err := filepath.Abs(filepath.Join(a.dir, agentInstructionsFileName))