tool-sync icon indicating copy to clipboard operation
tool-sync copied to clipboard

Improve error messages when the tag is not found

Open chshersh opened this issue 3 years ago • 2 comments

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

chshersh avatar Sep 07 '22 11:09 chshersh

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!

crudiedo avatar Oct 02 '22 10:10 crudiedo

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.

MitchellBerend avatar Oct 02 '22 13:10 MitchellBerend