Improve error messages when the tag is not found
The error message could be improved into saying something like:
There's no tag 'latest'
or even with the suggestion when possible in some cases:
There's no tag 'v13.0.0'. Perhaps you meant '13.0.0'?
See the following issue for more context:
- https://github.com/chshersh/tool-sync/issues/65
I'd like to implement that if nobody's currently working on it.
One thing that would be good to discuss is the maximum \ threshold Levenshtein distance value to drop all the "possible" tags above that (and then get the most similar one) - I'm thinking about 3 or 4, but I would love to hear your thoughts!
I'm not working on it.
I'm thinking about 3 or 4, but I would love to hear your thoughts!
It's probably a good idea to make this number a constant so its easily tunable at some later point.