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 afa01a5 commit c536ac3Copy full SHA for c536ac3
README.md
@@ -48,4 +48,3 @@ Incoming.
48
* [Async Graphql Crates](https://github.com/async-graphql/async-graphql)
49
* [Apollo Tracing](https://github.com/apollographql/apollo-tracing)
50
* [Apollo Server](https://github.com/apollographql/apollo-server)
51
-
src/lib.rs
@@ -443,6 +443,11 @@ impl Extension for ApolloTracingExtension {
443
})
444
.collect(),
445
));
446
+ let json = match serde_json::to_string(&e) {
447
+ Ok(content) => content,
448
+ Err(e) => serde_json::json!({ "error": format!("{:?}", e) }).to_string(),
449
+ };
450
+ &error.set_json(json);
451
node.write()
452
.await
453
.set_error(RepeatedField::from_vec(vec![error]));
0 commit comments