File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -513,7 +513,9 @@ impl Client {
513
513
async fn wasm_layer ( file : & Path ) -> Result < ImageLayer > {
514
514
tracing:: trace!( "Reading wasm module from {:?}" , file) ;
515
515
Ok ( ImageLayer :: new (
516
- fs:: read ( file) . await . context ( "cannot read wasm module" ) ?,
516
+ fs:: read ( file)
517
+ . await
518
+ . with_context ( || format ! ( "cannot read wasm module {}" , quoted_path( file) ) ) ?,
517
519
WASM_LAYER_MEDIA_TYPE . to_string ( ) ,
518
520
None ,
519
521
) )
@@ -522,7 +524,13 @@ impl Client {
522
524
/// Create a new data layer based on a file.
523
525
async fn data_layer ( file : & Path , media_type : String ) -> Result < ImageLayer > {
524
526
tracing:: trace!( "Reading data file from {:?}" , file) ;
525
- Ok ( ImageLayer :: new ( fs:: read ( & file) . await ?, media_type, None ) )
527
+ Ok ( ImageLayer :: new (
528
+ fs:: read ( & file)
529
+ . await
530
+ . with_context ( || format ! ( "cannot read file {}" , quoted_path( file) ) ) ?,
531
+ media_type,
532
+ None ,
533
+ ) )
526
534
}
527
535
528
536
fn content_ref_for_layer ( & self , layer : & ImageLayer ) -> ContentRef {
You can’t perform that action at this time.
0 commit comments