fix: improve span logs

This commit is contained in:
Jon Lundy
2022-08-16 16:06:25 -06:00
parent 6033437584
commit c9dddf5aa3
5 changed files with 142 additions and 84 deletions

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 {