This commit is contained in:
Florian Weingarten
2015-04-28 02:11:01 -04:00
parent edfd86624c
commit 8ba47df8d1
4 changed files with 20 additions and 21 deletions

View File

@@ -1,7 +1,6 @@
package restic
import (
"errors"
"fmt"
"os"
"path/filepath"
@@ -75,7 +74,7 @@ func (res *Restorer) to(dst string, dir string, treeBlob server.Blob) error {
if node.Type == "dir" {
if node.Subtree == nil {
return errors.New(fmt.Sprintf("Dir without subtree in tree %s", treeBlob))
return fmt.Errorf("Dir without subtree in tree %s", treeBlob)
}
subp := filepath.Join(dir, node.Name)