Skip to content

Commit 3416b56

Browse files
committed
Fix message for mutating subgraph response in rhai
1 parent 4538236 commit 3416b56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apollo-router/src/plugins/rhai/engine.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1494,7 +1494,7 @@ macro_rules! register_rhai_router_interface {
14941494
if_subgraph! {
14951495
$base => {
14961496
let _unused = (obj, headers);
1497-
Err("cannot mutate originating request on a subgraph".into())
1497+
Err("cannot mutate response on a subgraph".into())
14981498
} else {
14991499
obj.with_mut(|response| *response.response.headers_mut() = headers);
15001500
Ok(())
@@ -1558,7 +1558,7 @@ macro_rules! register_rhai_router_interface {
15581558
if_subgraph! {
15591559
$base => {
15601560
let _unused = (obj, uri);
1561-
Err("cannot mutate originating request on a subgraph".into())
1561+
Err("cannot mutate response on a subgraph".into())
15621562
} else {
15631563
obj.with_mut(|request| *request.router_request.uri_mut() = uri);
15641564
Ok(())

0 commit comments

Comments
 (0)