You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 30, 2019. It is now read-only.
It appears that Thor does not allow exiting with an error code that is
not 0, unless that is raised by Thor itself. There is some [description
here][1].
I wish to be able to capture errors and put them into Logger, so I have
added a `begin`/`rescue` block capturing all errors.
I've added a very small test to capture that the errors are handled, but
I think there is some further testing that I'd like to be able to add to
ensure the service behaves as we expect it to. I'd like to add tests to
capture the exceptions raised by AWS errors which is possible to stub,
but I need to figure out how best to write this.
For now I'm just adding the simple block and test. It is suggested that
you can replace the `exit_on_failure?` method, but this did not capture
the exception like I wished it to[2], and I had trouble implementing
this against the correct test.
[1]: rails/thor#244
[2]: rails/thor#244 (comment)
0 commit comments