Replies: 1 comment 1 reply
-
Leader failure can be expressed as an exception. I guess return values would be easier to reason about and handle, so why not convert them, too. It would be a non-trivial API change, though. @kjnilsson what do you think? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When trying to reproduce #309 (which failed), I encountered exceptions thrown in ra:process_command():
Script to reproduce:
Steps to reproduce:
make
iterlc repro.erl && erl -s repro main "/path/to/ra" -s init stop
write error by exception
from its outputDiscussion point: Is the exception above should be catched and converted?
it catches some exceptions and covert them to normal values
(and I like this design of converting to normal values 😄)
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions