Skip to content

Commit 59e1302

Browse files
Add more description
1 parent 7a6acf3 commit 59e1302

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aggregate_repository.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func (r *PublisherRepository) Reconstitute(id string, source AggregateRoot, stre
5959
events := stream.Events
6060

6161
if len(events) == 0 {
62-
return errors.New("No events found for this id")
62+
return fmt.Errorf("No events found for id: %s", id)
6363
}
6464

6565
for _, event := range events {

0 commit comments

Comments
 (0)