Skip to content

Commit

Permalink
TASK: Improve import error if workspace contains events or does not e…
Browse files Browse the repository at this point in the history
…xist at all and projections were stale
  • Loading branch information
mhsdesign committed Nov 19, 2024
1 parent 481971d commit 0b28b0e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function run(ProcessingContext $context): void
try {
$this->eventStore->commit($contentStreamStreamName, Events::fromArray($domainEvents), ExpectedVersion::fromVersion(Version::first()));
} catch (ConcurrencyException $e) {
throw new \RuntimeException(sprintf('Failed to publish %d events because the event stream "%s" for workspace "%s" already contains events.', count($domainEvents), $contentStreamStreamName->value, $workspace->workspaceName->value), 1729506818, $e);
throw new \RuntimeException(sprintf('Failed to publish %d events because the event stream "%s" for workspace "%s". Please prune the content repository first via `./flow site:pruneAll`.', count($domainEvents), $contentStreamStreamName->value, $workspace->workspaceName->value), 1729506818, $e);
}
}
}

0 comments on commit 0b28b0e

Please sign in to comment.