errors, fs: Replace CombineErrors with stdlib Join

This does not produce exactly the same messages, as it inserts newlines
instead of "; ". But given how long our error messages can be, that
might be a good thing.
This commit is contained in:
greatroar
2024-10-05 10:56:40 +02:00
parent 19653f9e06
commit 2b609d3e77
3 changed files with 4 additions and 29 deletions
+1 -1
View File
@@ -189,7 +189,7 @@ func nodeRestoreGenericAttributes(node *restic.Node, path string, warn func(msg
}
restic.HandleUnknownGenericAttributesFound(unknownAttribs, warn)
return errors.CombineErrors(errs...)
return errors.Join(errs...)
}
// genericAttributesToWindowsAttrs converts the generic attributes map to a WindowsAttributes and also returns a string of unknown attributes that it could not convert.