Skip to content

Commit 4a84d1e

Browse files
committed
Corrected Federation CLI
1 parent 155df91 commit 4a84d1e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

apollo-federation/cli/src/main.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,10 @@ fn cmd_subgraph(file_path: &Path) -> Result<(), FederationError> {
341341
.file_name()
342342
.and_then(|name| name.to_str().map(|x| x.to_string()));
343343
let name = name.unwrap_or("subgraph".to_string());
344-
let subgraph = typestate::Subgraph::parse(&name, &format!("http://{name}"), &doc_str)?
345-
.expand_links()?
344+
let subgraph = typestate::Subgraph::parse(&name, &format!("http://{name}"), &doc_str)
345+
.map_err(|e| e.into_inner())?
346+
.expand_links()
347+
.map_err(|e| e.into_inner())?
346348
.assume_upgraded()
347349
.validate()
348350
.map_err(|e| e.into_inner())?;

0 commit comments

Comments
 (0)