Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Are there zsh error message explanation




On 2022-12-15 19:28, Bart Schaefer wrote:

We've had this discussion before and decided to stay with the error
messages that all shells with similar features have in common, even if
they may be terse.

Not that there's any hope of this, but one of my bright ideas was to have every error message in the universe include an ID code, which could be looked up in some reference where they would be elaborated on:

#953: improper type for array assignment

... you look up #953 in the Great Book of Errors and see:

#953: zsh has detected that whereas you have declared (yes I know wrong word but ...) an array of a certain type, you are attempting to assign something to that array that is incompatible with it's type.  For example,  .... (and so on).  So whereas the messages might remain terse, voluminous information would still be easy to access.

My own error messages optionally return their function and line number, it can be quite handy.






Messages sorted by: Reverse Date, Date, Thread, Author