From c5b530669e965c72ee35e512b6dbaf1d63d07ce9 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 44e1396..e157e86 100644 --- a/endpoint/endpoint_zfs_abstraction.go +++ b/endpoint/endpoint_zfs_abstraction.go @@ -468,7 +468,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")) }