@@ -11,7 +11,7 @@ use self::sqlite_pool::SqliteConnectionPool;
11
11
use crate :: error:: Result ;
12
12
use crate :: web:: metrics:: RenderingTimesRecorder ;
13
13
use crate :: { db:: Pool , Config , InstanceMetrics } ;
14
- use anyhow:: { anyhow, ensure, Context as _ } ;
14
+ use anyhow:: { anyhow, ensure} ;
15
15
use chrono:: { DateTime , Utc } ;
16
16
use path_slash:: PathExt ;
17
17
use postgres:: fallible_iterator:: FallibleIterator ;
@@ -28,7 +28,7 @@ use std::{
28
28
sync:: Arc ,
29
29
} ;
30
30
use tokio:: runtime:: Runtime ;
31
- use tracing:: { info, instrument, trace} ;
31
+ use tracing:: { error , info, instrument, trace} ;
32
32
33
33
const MAX_CONCURRENT_UPLOADS : usize = 1000 ;
34
34
@@ -643,10 +643,12 @@ pub fn migrate_old_archive_indexes(
643
643
let version: & str = row. get ( 1 ) ;
644
644
info ! ( "converting archive index for {} {}..." , name, version) ;
645
645
646
- migrate_one ( storage, & rustdoc_archive_path ( name, version) )
647
- . context ( "error converting rustdoc archive index" ) ?;
648
- migrate_one ( storage, & source_archive_path ( name, version) )
649
- . context ( "error converting source archive index" ) ?;
646
+ if let Err ( err) = migrate_one ( storage, & rustdoc_archive_path ( name, version) ) {
647
+ error ! ( "error converting rustdoc archive index: {:?}" , err) ;
648
+ }
649
+ if let Err ( err) = migrate_one ( storage, & source_archive_path ( name, version) ) {
650
+ error ! ( "error converting source archive index: {:?}" , err) ;
651
+ }
650
652
}
651
653
Ok ( ( ) )
652
654
}
0 commit comments