Routex.Extension.Alternatives.Exceptions.AttrsMismatchError exception (Routex v1.2.2)
View SourceRaised when the custom attributes of branches do not have the same keys.
%{
branches: %{
"/" => %{attrs: %{key1: 1, key2: 2}},
"/other" => %{attrs: %{key1: 1}} # missing :key2
}
}
To fix this, make the attribute maps consistent or use an attributes struct.