replace github.com/juju/arrar by /errors

This commit is contained in:
Alexander Neumann
2015-05-02 01:29:54 +02:00
parent 813031a989
commit 97619e743c
3 changed files with 34 additions and 36 deletions

View File

@@ -2,7 +2,6 @@ package restic
import (
"encoding/json"
"errors"
"fmt"
"io"
"os"
@@ -10,12 +9,13 @@ import (
"sort"
"sync"
"github.com/juju/arrar"
"github.com/restic/restic/backend"
"github.com/restic/restic/debug"
"github.com/restic/restic/pack"
"github.com/restic/restic/pipe"
"github.com/restic/restic/server"
"github.com/juju/errors"
)
const (
@@ -137,7 +137,7 @@ func (arch *Archiver) SaveFile(p *Progress, node *Node) error {
}
if err != nil {
return arrar.Annotate(err, "SaveFile() chunker.Next()")
return errors.Annotate(err, "Chunker.Next()")
}
chunks++