Skip to content

Commit

Permalink
pass test failure text into context
Browse files Browse the repository at this point in the history
  • Loading branch information
nexxeln committed Jun 24, 2024
1 parent ecece3a commit 15224fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ async function addLogsToCode(options: Options): Promise<string> {
},
{
role: 'user',
content: `Please add detailed logs to the following code to help debug repeated test failures:\n\n${options.priorCode}`,
content: `Please add detailed logs to the following code to help debug repeated test failures:\n\n${options.priorCode}\n\nThe error you received on that code was:\n\n${options.lastRunError}`,
},
],
});
Expand Down

0 comments on commit 15224fa

Please sign in to comment.