X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/d302957c09b192d0fbc09287ba7dcb7c32426556..000ae97acb21a1c0c90e9278177a74411ba6eab2:/agent.go diff --git a/agent.go b/agent.go index 1d76c5b..3fc9546 100644 --- 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))