Skip to content

Commit

Permalink
update persistent sub fails when non-existing
Browse files Browse the repository at this point in the history
  • Loading branch information
prolic committed Jan 5, 2019
1 parent 556507d commit 9c27ae3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Internal/EventStoreHttpConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -972,9 +972,11 @@ public function updatePersistentSubscription(
case 401:
throw AccessDenied::toStream($stream);
case 404:
return new PersistentSubscriptionUpdateResult(
PersistentSubscriptionUpdateStatus::notFound()
);
throw new InvalidOperationException(\sprintf(
'Subscription group \'%s\' on stream \'%s\' does not exist',
$groupName,
$stream
));
default:
throw new EventStoreConnectionException(\sprintf(
'Unexpected status code %d returned',
Expand Down

0 comments on commit 9c27ae3

Please sign in to comment.