# Improve error handling when copying a permalink fails \(\#7447\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 792c832205e20943041bfbad2dc3427143e3ecb8

Requested commit: 792c832205e20943041bfbad2dc3427143e3ecb8

Commit: 792c832205e20943041bfbad2dc3427143e3ecb8

Tree: 2f69159a6e6340a49f389d3997d24a6cb3622cbc

Author: Marshall Bowers

Committer: GitHub

## Message

```
Improve error handling when copying a permalink fails (#7447)

This PR improves the error handling when the `editor: copy permalink to
line` action fails.

Right now if something goes wrong nothing happens, and we don't write
anything to the logs.

This PR makes it so we display a toast when the operation fails with the
error message, as well as write it to the Zed logs.

Release Notes:

- Improved error behavior for `editor: copy permalink to line` action.
```

## Parents

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

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