zkat / miette

Fancy extension for std::error::Error with pretty, detailed diagnostic printing.
https://docs.rs/miette
Apache License 2.0
1.98k stars 113 forks source link

Change `link` label to something else #331

Closed calavera closed 8 months ago

calavera commented 8 months ago

I didn't find an easy way to do this, so I thought to open an issue to discuss if it's possible to implement.

I'd like to add documentation links to my errors, but the word link in the output doesn't sound correct. I was wondering if there is any way to provide a different label than link. In my case, I'd like it to say documentation.

This might be a minor nit, so feel free to disregard the issue if you don't consider it important. But if it's possible, it'd be great if someone could implement the option to change the default label for links.

zkat commented 8 months ago

I'll take a PR for this