Closed zachahn closed 2 years ago
Fair enough, thanks!
Please add a line to CHANGELOG, get CI to pass, there's a bunch of Rubocop suggestions.
Done and done. Since I modified some patch files, I verified my changes by running bundle exec rake slack:api:update
(I didn't commit those changes).
Let me know if there's anything else is missing. Thanks!
Done and done. Since I modified some patch files, I verified my changes by running
bundle exec rake slack:api:update
(I didn't commit those changes).
~Looks like they are committed tho (those files that have "This file was auto-generated by lib/tasks/web.rake" on top). I would either include all those generated changes, or include none of the generated changes (and make a separate PR/commit with those)?~
I see you made all the throw/raise changes only, so I'll just merge this as is.
@zachahn Want to followup with other API updates and we can make a release?
This commit replaces all instances of
throw
withraise
.While I was using this library, I noticed that error handling didn't work as expected.
Here's an example of what I tried. Looking at the code, I expected this to print
ArgumentError
, but it printedUncaughtThrowError
.According to Ruby's tutorial on Exceptions,
raise
andrescue
should be used for exceptions, whilethrow
andcatch
could be used for control flow.