From c0497d46d5eafc7b5c0dda068f516d8fe5261d68 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Fri, 5 Apr 2024 15:27:27 +0100 Subject: [PATCH] ulozto: remove use of github.com/pkg/errors --- backend/ulozto/ulozto.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/ulozto/ulozto.go b/backend/ulozto/ulozto.go index eef719d4f..063f465db 100644 --- a/backend/ulozto/ulozto.go +++ b/backend/ulozto/ulozto.go @@ -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