We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 155df91 commit 4a84d1eCopy full SHA for 4a84d1e
apollo-federation/cli/src/main.rs
@@ -341,8 +341,10 @@ fn cmd_subgraph(file_path: &Path) -> Result<(), FederationError> {
341
.file_name()
342
.and_then(|name| name.to_str().map(|x| x.to_string()));
343
let name = name.unwrap_or("subgraph".to_string());
344
- let subgraph = typestate::Subgraph::parse(&name, &format!("http://{name}"), &doc_str)?
345
- .expand_links()?
+ let subgraph = typestate::Subgraph::parse(&name, &format!("http://{name}"), &doc_str)
+ .map_err(|e| e.into_inner())?
346
+ .expand_links()
347
348
.assume_upgraded()
349
.validate()
350
.map_err(|e| e.into_inner())?;
0 commit comments