forked from TrueCloudLab/rclone
ulozto: remove use of github.com/pkg/errors
This commit is contained in:
parent
df3df06d2e
commit
c0497d46d5
1 changed files with 2 additions and 3 deletions
|
@ -7,6 +7,7 @@ import (
|
||||||
"encoding/base64"
|
"encoding/base64"
|
||||||
"encoding/gob"
|
"encoding/gob"
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
@ -16,7 +17,6 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/pkg/errors"
|
|
||||||
"github.com/rclone/rclone/backend/ulozto/api"
|
"github.com/rclone/rclone/backend/ulozto/api"
|
||||||
"github.com/rclone/rclone/fs"
|
"github.com/rclone/rclone/fs"
|
||||||
"github.com/rclone/rclone/fs/config"
|
"github.com/rclone/rclone/fs/config"
|
||||||
|
@ -186,8 +186,7 @@ func errorHandler(resp *http.Response) error {
|
||||||
if errResponse.StatusCode == 0 {
|
if errResponse.StatusCode == 0 {
|
||||||
errResponse.StatusCode = resp.StatusCode
|
errResponse.StatusCode = resp.StatusCode
|
||||||
}
|
}
|
||||||
|
return errResponse
|
||||||
return errors.WithStack(errResponse)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// retryErrorCodes is a slice of error codes that we will retry
|
// retryErrorCodes is a slice of error codes that we will retry
|
||||||
|
|
Loading…
Reference in a new issue