Skip to content

Commit

Permalink
fix(sql-backend): fix error message for altering unrecognized system …
Browse files Browse the repository at this point in the history
…parameter (#15161)
  • Loading branch information
yezizp2012 authored Feb 23, 2024
1 parent 91d97ac commit 1dd61bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion e2e_test/error_ui/simple/main.slt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ db error: ERROR: Failed to run the query

Caused by these errors (recent errors listed first):
1: gRPC request to meta service failed: Internal error
2: SystemParams error: unrecognized system param "not_exist_key"
2: SystemParams error: unrecognized system parameter "not_exist_key"


query error
Expand Down
2 changes: 1 addition & 1 deletion src/common/src/system_param/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ macro_rules! impl_set_system_param {
)*
_ => {
Err(format!(
"unrecognized system param {:?}",
"unrecognized system parameter {:?}",
key
))
}
Expand Down
2 changes: 1 addition & 1 deletion src/meta/src/controller/system_param.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ impl SystemParamsController {
.await?
else {
return Err(MetaError::system_params(format!(
"unrecognized system parameter {}",
"unrecognized system parameter {:?}",
name
)));
};
Expand Down

0 comments on commit 1dd61bc

Please sign in to comment.