trevorhauter / gitportal.nvim

Easily generate or ingest shareable permalinks to get to the files you want. Fast.
MIT License
5 stars 0 forks source link

Add error handling #7

Closed trevorhauter closed 1 day ago

trevorhauter commented 2 weeks ago

With our current, incomplete implementation of this plugin, if we attempt to generate a permalink, we raise messy errors, or, show a permalink to the user that doesn't make sense. i.e. https://github.com/FAILED/gitportal.nvim/.

We should be a little more resilient and informative with our errors. I'd like to see a descriptive error raised in these scenarios.

This is an open ended issue, but, I'd like it if we could go through our existing error handling and update it to raise informative errors and make the user experience better.

After doing this, I'm going to leave a comment with what I did and outline any additional work that I find that needs to be completed.