Commit 559140d 1 parent 9b1b706 commit 559140d Copy full SHA for 559140d
File tree 3 files changed +9
-3
lines changed
3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ pub enum ResolveSubgraphError {
26
26
#[ error( transparent) ]
27
27
Fs ( Box < dyn std:: error:: Error + Send + Sync > ) ,
28
28
/// Occurs when a introspection against a subgraph fails
29
- #[ error( "Failed to introspect the subgraph {subgraph_name}." ) ]
29
+ #[ error( "Failed to introspect the subgraph \" {subgraph_name}\" ." ) ]
30
30
IntrospectionError {
31
31
/// The subgraph name that failed to be resolved
32
32
subgraph_name : String ,
Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ impl SubtaskHandleStream for SubgraphWatchers {
170
170
match diff {
171
171
Ok ( diff) => {
172
172
// If we detect additional diffs, start a new subgraph subtask.
173
- // Adding the abort handle to the currentl collection of handles.
173
+ // Adding the abort handle to the current collection of handles.
174
174
for ( subgraph_name, subgraph_config) in diff. added ( ) {
175
175
let _ = subgraph_handles. add (
176
176
subgraph_name,
Original file line number Diff line number Diff line change @@ -50,8 +50,14 @@ impl SubgraphIntrospection {
50
50
. skip ( 1 )
51
51
. filter_map ( |change| async move {
52
52
match change {
53
- Ok ( subgraph) => Some ( subgraph) ,
53
+ Ok ( subgraph) => {
54
+ println ! ( "Connectivity restored for subgraph \" {}\" .\n " , subgraph. name( ) ) ;
55
+ Some ( subgraph)
56
+ } ,
54
57
Err ( err) => {
58
+ println ! ( "Error detected communicating with subgraph: {}" , err) ;
59
+ println ! ( "Note: Schema changes will not be reflected." ) ;
60
+ println ! ( "Will retry but subgraph logs should be inspected.\n \n " ) ;
55
61
tracing:: error!( "{:?}" , err) ;
56
62
None
57
63
}
You can’t perform that action at this time.
0 commit comments