1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-22 07:43:03 +00:00

Merge pull request #5142 from MichaelEischer/fix-not-ordered-error-message

restic: add missing space in error message
This commit is contained in:
Michael Eischer 2024-11-29 22:48:16 +01:00 committed by GitHub
commit a5c49e5340
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -162,7 +162,7 @@ func NewTreeJSONBuilder() *TreeJSONBuilder {
func (builder *TreeJSONBuilder) AddNode(node *Node) error { func (builder *TreeJSONBuilder) AddNode(node *Node) error {
if node.Name <= builder.lastName { if node.Name <= builder.lastName {
return fmt.Errorf("node %q, last%q: %w", node.Name, builder.lastName, ErrTreeNotOrdered) return fmt.Errorf("node %q, last %q: %w", node.Name, builder.lastName, ErrTreeNotOrdered)
} }
if builder.lastName != "" { if builder.lastName != "" {
_ = builder.buf.WriteByte(',') _ = builder.buf.WriteByte(',')