@ -143,7 +143,7 @@ namespace Squidex.Infrastructure.CQRS.Events.Actors
private async Task StopAsync(Exception exception = null)
{
await eventConsumerInfoRepository.StopAsync(eventConsumer.Name, exception?.Message);
await eventConsumerInfoRepository.StopAsync(eventConsumer.Name, exception?.ToString());
await eventSubscription.StopAsync();
isStarted = false;
@ -178,7 +178,7 @@ namespace Squidex.Infrastructure.CQRS.Events.Actors
await sut.SendAsync(new ResetConsumerMessage());
await sut.StopAsync();
A.CallTo(() => eventConsumerInfoRepository.StopAsync(consumerName, exception.Message))
A.CallTo(() => eventConsumerInfoRepository.StopAsync(consumerName, exception.ToString()))
.MustHaveHappened();
}