Skip to content

Commit

Permalink
Merge pull request #10271 from rabbitmq/fix-stream-topology-error-code
Browse files Browse the repository at this point in the history
Return error atom according to specification
  • Loading branch information
acogoluegnes authored Jan 4, 2024
2 parents 6554336 + 6a33056 commit b4804a8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions deps/rabbitmq_stream/src/rabbit_stream_manager.erl
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,10 @@ handle_call({topology, VirtualHost, Stream}, _From, State) ->
#{leader_node => undefined,
replica_nodes => []},
Members)};
_ ->
{error, not_available}
Err ->
rabbit_log:info("Error locating ~tp stream members: ~tp",
[StreamName, Err]),
{error, stream_not_available}
end;
{error, not_found} ->
{error, stream_not_found};
Expand Down

0 comments on commit b4804a8

Please sign in to comment.