File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ pub fn convert_to_install_only<W: Write>(reader: impl BufRead, writer: W) -> Res
230
230
let mut json_data = vec ! [ ] ;
231
231
entry. read_to_end ( & mut json_data) ?;
232
232
233
- let json_main = parse_python_json ( & json_data) ?;
233
+ let json_main = parse_python_json ( & json_data) . context ( "failed to parse PYTHON.json" ) ?;
234
234
235
235
let stdlib_path = json_main
236
236
. python_paths
@@ -383,7 +383,11 @@ pub fn convert_to_stripped<W: Write>(
383
383
pub fn produce_install_only ( tar_zst_path : & Path ) -> Result < PathBuf > {
384
384
let buf = std:: fs:: read ( tar_zst_path) ?;
385
385
386
- let gz_data = convert_to_install_only ( std:: io:: Cursor :: new ( buf) , std:: io:: Cursor :: new ( vec ! [ ] ) ) ?
386
+ let gz_data = convert_to_install_only ( std:: io:: Cursor :: new ( buf) , std:: io:: Cursor :: new ( vec ! [ ] ) )
387
+ . context ( format ! (
388
+ "failed to convert `{}` to install_only" ,
389
+ tar_zst_path. display( )
390
+ ) ) ?
387
391
. into_inner ( ) ;
388
392
389
393
let filename = tar_zst_path
@@ -417,7 +421,11 @@ pub fn produce_install_only_stripped(tar_gz_path: &Path, llvm_dir: &Path) -> Res
417
421
std:: io:: Cursor :: new ( buf) ,
418
422
std:: io:: Cursor :: new ( vec ! [ ] ) ,
419
423
llvm_dir,
420
- ) ?
424
+ )
425
+ . context ( format ! (
426
+ "failed to convert `{}` to install_only_stripped" ,
427
+ tar_gz_path. display( )
428
+ ) ) ?
421
429
. into_inner ( ) ;
422
430
423
431
let size_after = gz_data. len ( ) ;
You can’t perform that action at this time.
0 commit comments