1
mirror of https://github.com/rclone/rclone synced 2024-11-15 14:57:03 +01:00

ulozto: remove use of github.com/pkg/errors

This commit is contained in:
Nick Craig-Wood 2024-04-05 15:27:27 +01:00
parent df3df06d2e
commit c0497d46d5

View File

@ -7,6 +7,7 @@ import (
"encoding/base64"
"encoding/gob"
"encoding/hex"
"errors"
"fmt"
"io"
"net/http"
@ -16,7 +17,6 @@ import (
"strings"
"time"
"github.com/pkg/errors"
"github.com/rclone/rclone/backend/ulozto/api"
"github.com/rclone/rclone/fs"
"github.com/rclone/rclone/fs/config"
@ -186,8 +186,7 @@ func errorHandler(resp *http.Response) error {
if errResponse.StatusCode == 0 {
errResponse.StatusCode = resp.StatusCode
}
return errors.WithStack(errResponse)
return errResponse
}
// retryErrorCodes is a slice of error codes that we will retry