There is a match error on :pang when Craft.Raft.start_group/4 can't ping a node in the cluster. It isn't clear what the match error means without digging in and reading the code in Craft. It would be nice if the error returned something more informative.
Option ideas
- Change the return type of
start_group to be an :ok or an error tuple.
a. The reason part of the error tuple is a map with extra info
b. The reason part of the error tuple is an exception struct that the caller could raise if they would like.
- Change the exception to be something that is specific to Craft and carries information like the node that couldn't connect, etc.
I'm happy to help, but I wasn't sure of which direction you prefer or if you have a different idea.
There is a match error on
:pangwhenCraft.Raft.start_group/4can't ping a node in the cluster. It isn't clear what the match error means without digging in and reading the code in Craft. It would be nice if the error returned something more informative.Option ideas
start_groupto be an:okor an error tuple.a. The reason part of the error tuple is a map with extra info
b. The reason part of the error tuple is an exception struct that the caller could raise if they would like.
I'm happy to help, but I wasn't sure of which direction you prefer or if you have a different idea.