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:
commit
a5c49e5340
1 changed files with 1 additions and 1 deletions
|
@ -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(',')
|
||||||
|
|
Loading…
Reference in a new issue