@@ -253,20 +253,32 @@ impl UnresolvedDataSource {
253
253
let source_raw = resolver
254
254
. cat ( logger, & self . source . address . to_ipfs_link ( ) )
255
255
. await
256
- . context ( "Failed to resolve source subgraph manifest" ) ?;
256
+ . context ( format ! (
257
+ "Failed to resolve source subgraph [{}] manifest" ,
258
+ self . source. address,
259
+ ) ) ?;
257
260
258
- let source_raw: serde_yaml:: Mapping = serde_yaml:: from_slice ( & source_raw)
259
- . context ( "Failed to parse source subgraph manifest as YAML" ) ?;
261
+ let source_raw: serde_yaml:: Mapping =
262
+ serde_yaml:: from_slice ( & source_raw) . context ( format ! (
263
+ "Failed to parse source subgraph [{}] manifest as YAML" ,
264
+ self . source. address
265
+ ) ) ?;
260
266
261
267
let deployment_hash = self . source . address . clone ( ) ;
262
268
263
269
let source_manifest = UnresolvedSubgraphManifest :: < C > :: parse ( deployment_hash, source_raw)
264
- . context ( "Failed to parse source subgraph manifest" ) ?;
270
+ . context ( format ! (
271
+ "Failed to parse source subgraph [{}] manifest" ,
272
+ self . source. address
273
+ ) ) ?;
265
274
266
275
source_manifest
267
276
. resolve ( resolver, logger, LATEST_VERSION . clone ( ) )
268
277
. await
269
- . context ( "Failed to resolve source subgraph manifest" )
278
+ . context ( format ! (
279
+ "Failed to resolve source subgraph [{}] manifest" ,
280
+ self . source. address
281
+ ) )
270
282
. map ( Arc :: new)
271
283
}
272
284
@@ -292,12 +304,16 @@ impl UnresolvedDataSource {
292
304
. iter ( )
293
305
. any ( |ds| matches ! ( ds, crate :: data_source:: DataSource :: Subgraph ( _) ) )
294
306
{
295
- return Err ( anyhow ! ( "Nested subgraph data sources are not supported." ) ) ;
307
+ return Err ( anyhow ! (
308
+ "Nested subgraph data sources [{}] are not supported." ,
309
+ self . name
310
+ ) ) ;
296
311
}
297
312
298
313
if source_spec_version < & SPEC_VERSION_1_3_0 {
299
314
return Err ( anyhow ! (
300
- "Source subgraph manifest spec version {} is not supported, minimum supported version is {}" ,
315
+ "Source subgraph [{}] manifest spec version {} is not supported, minimum supported version is {}" ,
316
+ self . source. address,
301
317
source_spec_version,
302
318
SPEC_VERSION_1_3_0
303
319
) ) ;
@@ -310,7 +326,8 @@ impl UnresolvedDataSource {
310
326
311
327
if pruning_enabled {
312
328
return Err ( anyhow ! (
313
- "Pruning is enabled for source subgraph, which is not supported"
329
+ "Pruning is enabled for source subgraph [{}], which is not supported" ,
330
+ self . source. address
314
331
) ) ;
315
332
}
316
333
0 commit comments