Replace stdlib errors with github.com/pkg/errors

This commit is contained in:
Alexander Neumann
2016-08-29 19:23:50 +02:00
parent 17a38faa43
commit 444a268ce0
48 changed files with 92 additions and 47 deletions
+2 -1
View File
@@ -2,7 +2,6 @@ package main
import (
"bufio"
"errors"
"fmt"
"os"
"path/filepath"
@@ -14,6 +13,8 @@ import (
"strings"
"time"
"github.com/pkg/errors"
"golang.org/x/crypto/ssh/terminal"
)
+2 -1
View File
@@ -2,10 +2,11 @@ package main
import (
"encoding/json"
"errors"
"fmt"
"os"
"github.com/pkg/errors"
"restic"
"restic/backend"
"restic/debug"
+2 -1
View File
@@ -1,11 +1,12 @@
package main
import (
"errors"
"fmt"
"os"
"time"
"github.com/pkg/errors"
"golang.org/x/crypto/ssh/terminal"
"restic"
+2
View File
@@ -8,6 +8,8 @@ import (
"io"
"os"
"github.com/pkg/errors"
"restic"
"restic/backend"
"restic/pack"
+1 -1
View File
@@ -1,7 +1,7 @@
package main
import (
"errors"
"github.com/pkg/errors"
"restic/repository"
)
+2 -1
View File
@@ -1,9 +1,10 @@
package main
import (
"errors"
"fmt"
"github.com/pkg/errors"
"restic/backend"
"restic/repository"
)
+2 -1
View File
@@ -1,9 +1,10 @@
package main
import (
"errors"
"fmt"
"github.com/pkg/errors"
"restic/backend"
)
+2 -1
View File
@@ -1,9 +1,10 @@
package main
import (
"errors"
"fmt"
"github.com/pkg/errors"
"restic"
"restic/backend"
"restic/debug"
+2 -1
View File
@@ -1,7 +1,6 @@
package main
import (
"errors"
"fmt"
"io"
"os"
@@ -9,6 +8,8 @@ import (
"strings"
"syscall"
"github.com/pkg/errors"
"restic/backend"
"restic/backend/local"
"restic/backend/rest"
+2 -1
View File
@@ -2,11 +2,12 @@ package main
import (
"fmt"
"github.com/jessevdk/go-flags"
"os"
"restic"
"restic/debug"
"runtime"
"github.com/jessevdk/go-flags"
)
func init() {