v0.0.568 remove duplicate ids in ExErr.UniqueIDs
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 2m38s

This commit is contained in:
2025-03-15 22:29:45 +01:00
parent c20ae20cc1
commit cea822ffa6
4 changed files with 12 additions and 6 deletions

View File

@@ -371,7 +371,7 @@ func (ee *ExErr) GetExtra(key string) (any, bool) {
}
func (ee *ExErr) UniqueIDs() []string {
ids := []string{ee.UniqueID}
ids := make([]string, 0, 1)
for curr := ee; curr != nil; curr = curr.OriginalError {
ids = append(ids, curr.UniqueID)
}