endpoint.ListAbstractionsError: fix stack overflow in .Error()

fixes #320
refs #318
This commit is contained in:
Christian Schwarz 2020-05-09 11:55:40 +02:00
parent b83c026cdc
commit 0d4bfda2fb

View File

@ -467,7 +467,7 @@ func (e ListAbstractionsErrors) Error() string {
}
msgs := make([]string, len(e))
for i := range e {
msgs[i] = e.Error()
msgs[i] = e[i].Error()
}
return fmt.Sprintf("list endpoint abstractions: multiple errors:\n%s", strings.Join(msgs, "\n"))
}