Skip to content

Commit

Permalink
Surface original error as we can get to this branch after all
Browse files Browse the repository at this point in the history
  • Loading branch information
drteeth committed Sep 19, 2024
1 parent 88f61eb commit bbd9690
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/event_store/streams/stream.ex
Original file line number Diff line number Diff line change
Expand Up @@ -344,9 +344,7 @@ defmodule EventStore.Streams.Stream do

append_to_stream(conn, stream_uuid, expected_version, events, opts)
else
# We should never get here, but just in case we break something in another
# part of the app, this will give us better output in the tests.
{:error, :already_retried_once}
{:error, {:already_retried_once, :duplicate_stream_uuid}}
end
end

Expand Down

0 comments on commit bbd9690

Please sign in to comment.