vermiculus / apiwrap.el

Generate wrappers for your API endpoints!
48 stars 6 forks source link

:condition-case key should be able to specify the error-symbol #12

Open vermiculus opened 6 years ago

vermiculus commented 6 years ago

Right now, the :condition-case key doesn't provide any symbol for error handlers. This will soon change to accommodate changes in Ghub, but due to time constraints, I can't change it in the way I'd like.

Ideally, we want syntax like this:

:condition-case err
((sym-1 (handle-1 err))
 (sym-2 (handle-2 err))

This is difficult because at the moment, these keys are expected to have one value. Perhaps a different key should be introduced to specify the error-symbol, but I'd like to think on that more.

vermiculus commented 6 years ago

Related to conversations in https://github.com/magit/ghub/commit/6fd4434c2dc7552e24ab31c9a548c3699a5c8b5a