File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
apps/labrinth/src/file_hosting Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -74,10 +74,10 @@ impl FileHost for S3Host {
74
74
content_type,
75
75
)
76
76
. await
77
- . map_err ( |_ | {
78
- FileHostingError :: S3Error (
79
- "Error while uploading file to S3" . to_string ( ) ,
80
- )
77
+ . map_err ( |err | {
78
+ FileHostingError :: S3Error ( format ! (
79
+ "Error while uploading file {file_name} to S3: {err}"
80
+ ) )
81
81
} ) ?;
82
82
83
83
Ok ( UploadFileData {
@@ -100,10 +100,10 @@ impl FileHost for S3Host {
100
100
self . bucket
101
101
. delete_object ( format ! ( "/{file_name}" ) )
102
102
. await
103
- . map_err ( |_ | {
104
- FileHostingError :: S3Error (
105
- "Error while deleting file from S3" . to_string ( ) ,
106
- )
103
+ . map_err ( |err | {
104
+ FileHostingError :: S3Error ( format ! (
105
+ "Error while deleting file {file_name} to S3: {err}"
106
+ ) )
107
107
} ) ?;
108
108
109
109
Ok ( DeleteFileData {
You can’t perform that action at this time.
0 commit comments