Unverified Commit 3be9430e authored by Tobias Koppers's avatar Tobias Koppers Committed by GitHub

avoid duplicated error output (#47954)

### What?

avoid including the error twice in the output

### Why?

`.context()` already keeps the previous error, no need to include in the
error message again
parent e643d52e
...@@ -135,7 +135,7 @@ impl ContentSource for NextRouterContentSource { ...@@ -135,7 +135,7 @@ impl ContentSource for NextRouterContentSource {
Ok(match &*res { Ok(match &*res {
RouterResult::Error(e) => { RouterResult::Error(e) => {
return Err(anyhow!(e.clone()).context(format!( return Err(anyhow!(e.clone()).context(format!(
"error during Next.js routing for /{path}{}: {e}", "error during Next.js routing for /{path}{}",
formated_query(raw_query) formated_query(raw_query)
))) )))
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment