@@ -330,11 +330,17 @@ impl ObjectStore for LocalFileSystem {
330330 opts : PutOptions ,
331331 ) -> Result < PutResult > {
332332 if matches ! ( opts. mode, PutMode :: Update ( _) ) {
333- return Err ( crate :: Error :: NotImplemented ) ;
333+ return Err ( crate :: Error :: NotImplemented {
334+ operation : "`put_opts` with mode `PutMode::Update`" . into ( ) ,
335+ implementer : self . to_string ( ) ,
336+ } ) ;
334337 }
335338
336339 if !opts. attributes . is_empty ( ) {
337- return Err ( crate :: Error :: NotImplemented ) ;
340+ return Err ( crate :: Error :: NotImplemented {
341+ operation : "`put_opts` with `opts.attributes` specified" . into ( ) ,
342+ implementer : self . to_string ( ) ,
343+ } ) ;
338344 }
339345
340346 let path = self . path_to_filesystem ( location) ?;
@@ -397,7 +403,10 @@ impl ObjectStore for LocalFileSystem {
397403 opts : PutMultipartOptions ,
398404 ) -> Result < Box < dyn MultipartUpload > > {
399405 if !opts. attributes . is_empty ( ) {
400- return Err ( crate :: Error :: NotImplemented ) ;
406+ return Err ( crate :: Error :: NotImplemented {
407+ operation : "`put_multipart_opts` with `opts.attributes` specified" . into ( ) ,
408+ implementer : self . to_string ( ) ,
409+ } ) ;
401410 }
402411
403412 let dest = self . path_to_filesystem ( location) ?;
0 commit comments