File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
apollo-router/src/plugins/rhai Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1494,7 +1494,7 @@ macro_rules! register_rhai_router_interface {
1494
1494
if_subgraph! {
1495
1495
$base => {
1496
1496
let _unused = ( obj, headers) ;
1497
- Err ( "cannot mutate originating request on a subgraph" . into( ) )
1497
+ Err ( "cannot mutate response on a subgraph" . into( ) )
1498
1498
} else {
1499
1499
obj. with_mut( |response| * response. response. headers_mut( ) = headers) ;
1500
1500
Ok ( ( ) )
@@ -1558,7 +1558,7 @@ macro_rules! register_rhai_router_interface {
1558
1558
if_subgraph! {
1559
1559
$base => {
1560
1560
let _unused = ( obj, uri) ;
1561
- Err ( "cannot mutate originating request on a subgraph" . into( ) )
1561
+ Err ( "cannot mutate response on a subgraph" . into( ) )
1562
1562
} else {
1563
1563
obj. with_mut( |request| * request. router_request. uri_mut( ) = uri) ;
1564
1564
Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments