From 36c598761ff8f897f4530f4e2ab923ed855ddb70 Mon Sep 17 00:00:00 2001 From: Horst Fellenberg Date: Fri, 5 Dec 2025 17:37:33 +0100 Subject: [PATCH 1/4] handle minio client errors after call to Stat() --- .DS_Store | Bin 0 -> 6148 bytes operations.go | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..06929da49f9076ef573de0b1ecee23d94dfcebfa GIT binary patch literal 6148 zcmeHKu}%U(5S@iHp4wnS)Wqh#fJkj~5;S&_@B@G-kU)+ENGvZleuAx~zhGtQ7w8xG z3)cE(cZFTh#Sc%Dbb3N}&(DqdsQ zt2Qr_(KwSS0Z~8{_=^hgw;ND}dNiP^_x%FEodxbwu#S)Sx~(;Pe#$7$B?-&-zRTMjQaf7E^3~iW;_yHJOObsFelRpAl263XmuPX2bYd))G literal 0 HcmV?d00001 diff --git a/operations.go b/operations.go index 58aa9ef..b468c32 100644 --- a/operations.go +++ b/operations.go @@ -113,7 +113,7 @@ func (c *client) GetFile(ctx context.Context, path string, options ...GetOption) objInfo, err := object.Stat() if err != nil { - return nil, fmt.Errorf(errMessage, err) + return nil, fmt.Errorf(errMessage, handleClientError(err)) } if objInfo.Err != nil { From 14def75248359b92d93ef88c7e2aedad38f64544 Mon Sep 17 00:00:00 2001 From: Horst Fellenberg Date: Fri, 5 Dec 2025 17:44:40 +0100 Subject: [PATCH 2/4] remove DS Store --- .DS_Store | Bin 6148 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 06929da49f9076ef573de0b1ecee23d94dfcebfa..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKu}%U(5S@iHp4wnS)Wqh#fJkj~5;S&_@B@G-kU)+ENGvZleuAx~zhGtQ7w8xG z3)cE(cZFTh#Sc%Dbb3N}&(DqdsQ zt2Qr_(KwSS0Z~8{_=^hgw;ND}dNiP^_x%FEodxbwu#S)Sx~(;Pe#$7$B?-&-zRTMjQaf7E^3~iW;_yHJOObsFelRpAl263XmuPX2bYd))G From 15fca8fa0b20b249f5ca225c7f68000f91210316 Mon Sep 17 00:00:00 2001 From: Horst Fellenberg Date: Fri, 5 Dec 2025 17:45:02 +0100 Subject: [PATCH 3/4] add ds store files to gitignore --- .gitignore | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index b986336..118d10b 100644 --- a/.gitignore +++ b/.gitignore @@ -14,4 +14,6 @@ # Dependency directories (remove the comment below to include it) # vendor/ -.idea/ \ No newline at end of file +.idea/ + +.DS_Store \ No newline at end of file From 07ce5dbfd3a8dcb7c1bcf598613b119276d44d96 Mon Sep 17 00:00:00 2001 From: Horst Fellenberg Date: Fri, 5 Dec 2025 17:45:24 +0100 Subject: [PATCH 4/4] newline at end of file --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 118d10b..29df3b0 100644 --- a/.gitignore +++ b/.gitignore @@ -16,4 +16,4 @@ .idea/ -.DS_Store \ No newline at end of file +.DS_Store