File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ impl IpfsFetcher for IpfsClient {
5050 . map_ok ( |chunk| chunk. to_vec ( ) )
5151 . try_concat ( )
5252 . await
53- . unwrap ( ) ;
53+ . map_err ( |_| DipsError :: SubgraphManifestUnavailable ( file . to_string ( ) ) ) ? ;
5454
5555 let manifest: GraphManifest = serde_yaml:: from_slice ( & content)
5656 . map_err ( |_| DipsError :: InvalidSubgraphManifest ( file. to_string ( ) ) ) ?;
Original file line number Diff line number Diff line change @@ -139,6 +139,8 @@ pub enum DipsError {
139139 PayerNotAuthorised ( Address ) ,
140140 #[ error( "voucher payee {actual} does not match the expected address {expected}" ) ]
141141 UnexpectedPayee { expected : Address , actual : Address } ,
142+ #[ error( "cannot get subgraph manifest for {0}" ) ]
143+ SubgraphManifestUnavailable ( String ) ,
142144 #[ error( "invalid subgraph id {0}" ) ]
143145 InvalidSubgraphManifest ( String ) ,
144146 #[ error( "voucher for chain id {0}, subgraph manifest has network {1}" ) ]
You can’t perform that action at this time.
0 commit comments