universal-ctags / citre

A superior code reading & auto-completion tool with pluggable backends.
GNU General Public License v3.0
326 stars 26 forks source link

Let the core APIs throw errors on invalid arguments #33

Closed AmaiKinono closed 3 years ago

AmaiKinono commented 3 years ago

For now, if the tags file is not found, the error happens on the citre-readtags--get-tags-file-info function, and the error looks like wrong type: stringp or so, which is not very useful.

I just quickly fix it in citre.el (not pushed yet), but we should also let core APIs check the arguments and throw errors when necessary.