File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -160,11 +160,10 @@ pub(super) async fn run_csv_import(
160
160
} ) ?
161
161
. file ;
162
162
let file_path = named_temp_file. path ( ) ;
163
- let file_name = file_path. file_name ( ) . unwrap_or_default ( ) ;
164
163
let file = tokio:: fs:: File :: open ( file_path) . await . with_context ( || {
165
164
format ! (
166
165
"The CSV file {} was uploaded correctly, but could not be opened" ,
167
- file_name . display( )
166
+ file_path . display( )
168
167
)
169
168
} ) ?;
170
169
let buffered = tokio:: io:: BufReader :: new ( file) ;
@@ -180,7 +179,7 @@ pub(super) async fn run_csv_import(
180
179
let table_name = & csv_import. table_name ;
181
180
format ! (
182
181
"{} was uploaded correctly, but its records could not be imported into the table {}" ,
183
- file_name . display( ) ,
182
+ file_path . display( ) ,
184
183
table_name
185
184
)
186
185
} )
You can’t perform that action at this time.
0 commit comments