zcomet icon indicating copy to clipboard operation
zcomet copied to clipboard

Feature Request: Improve error messages on invalid arguments

Open juarezr opened this issue 6 months ago • 0 comments

zcomet is great! It contributes a lot to lowering anxiety. :smile:

But sometimes it's difficult to find what has gone wrong with your shell setup.

Let's take an example that took me some time to figure out:

$ zsh -ic 'echo ZSH and zcomet have had failures'
You need to specify a valid plugin name.
ZSH and zcomet have had failures
$ 

This was caused by the following incorrect command in the .zshrc file after zcomet was sourced:

zcomet load gcloud ohmyzsh plugins/gcloud

Maybe it's possible to make it easy to figure out what's wrong with some improvements to the error messages:

$ zsh -ic 'echo ZSH and zcomet have better messages'
zcomet: Failed to load 'gcloud' because an invalid plugin name was specified: plugins/gcloud
ZSH and zcomet better messages
$ 

juarezr avatar Dec 12 '23 18:12 juarezr