fix: improve span logs

This commit is contained in:
Jon Lundy committed 2022-08-16 16:06:25 -06:00
1 parent 6033437584
commit c9dddf5aa3
5 files changed
+142 -84

No files matched your search

+1 -1
View File
@@ -83,7 +83,7 @@ func (m *eventLog) Append(ctx context.Context, events event.Events, version uint
last := uint64(len(*stream))
if version != AppendOnly && version != last {
return fmt.Errorf("current version wrong %d != %d", version, last)
return fmt.Errorf("%w: current version wrong %d != %d", es.ErrWrongVersion, version, last)
}
for i := range events {