From 0d4bfda2fbfb6d5f841412f3213e9f5a73c69740 Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Sat, 9 May 2020 11:55:40 +0200 Subject: [PATCH] endpoint.ListAbstractionsError: fix stack overflow in .Error() fixes #320 refs #318 --- endpoint/endpoint_zfs_abstraction.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/endpoint/endpoint_zfs_abstraction.go b/endpoint/endpoint_zfs_abstraction.go index f65800e..5d8488c 100644 --- a/endpoint/endpoint_zfs_abstraction.go +++ b/endpoint/endpoint_zfs_abstraction.go @@ -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")) }