# edit prediction cli: Improve error handling \(\#44718\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/60f4aa333be1b2661c1a60d5750701122c6c5d8c)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 60f4aa333be1b2661c1a60d5750701122c6c5d8c

Requested commit: 60f4aa333be1b2661c1a60d5750701122c6c5d8c

Commit: 60f4aa333be1b2661c1a60d5750701122c6c5d8c

Tree: e79fc312113108dc338dcd2e19d3c4d9dfbb48fb

Author: Agus Zubiaga

Committer: GitHub

## Message

```
edit prediction cli: Improve error handling (#44718)

We were panicking whenever something went wrong with an example in the
CLI. This can be very disruptive when running many examples, and e.g a
single request fails. Instead, if running more than one example, errors
will now be logged alongside instructions to explore and re-run the
example by itself.

<img width="1454" height="744" alt="CleanShot 2025-12-12 at 13 32 04@2x"
src="https://github.com/user-attachments/assets/87c59e64-08b9-4461-af5b-03af5de94152"></img>


You can still opt in to stop as soon as en error occurs with the new
`--failfast` argument.

Release Notes:

- N/A
```

## Parents

- [a698f1bf63b90df6c553fbffb430d978b9d44048](https://git.cafe/gitcafe/zed/commit/a698f1bf63b90df6c553fbffb430d978b9d44048?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/60f4aa333be1b2661c1a60d5750701122c6c5d8c?format=markdown)
