Closed kevsmith closed 8 years ago
If "abort" is for handled error scenarios but an error is unhandled, we should probably revise Cog::Command#fail
and the rescue block from Cog::Command#execute
. Current uses of #fail
should migrate over to using #abort
+ appropriate templates (meaning #fail
should be deprecated), while the rescue block should be loosened to support any exception.
Sounds reasonable for exception handling but out of scope for this initial pass, I think. I was focusing on getting the ability implemented in all the right places figuring then we can adapt command behavior to take advantage of it.
Sounds good. We've got a number of commands that use #fail
right now, so it'll take a bit of typing to get everything migrated over anyway; that shouldn't block this.
Implements Ruby command-facing API for the design described in #691.
Fixes #691