Skip to content

Commit 8820fac

Browse files
committed
fix(qc): fix a typo in invalid argument value validation error (#5744)
Fix a typo in invalid argument value validation error: remove a duplicate "argument" word that also had a typo in it.
1 parent 2693e0a commit 8820fac

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

libs/user-facing-errors/src/query_engine/validation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,15 +203,15 @@ impl ValidationError {
203203
let (message, meta) = if let Some(err) = underlying_err {
204204
let err_msg = err.to_string();
205205
let message = format!(
206-
"Invalid argument agument value. `{}` is not a valid `{}`. Underlying error: {}",
206+
"Invalid argument value. `{}` is not a valid `{}`. Underlying error: {}",
207207
value, expected_argument_type, &err_msg
208208
);
209209
let argument = ArgumentDescription::new(*argument_name, vec![Cow::Borrowed(expected_argument_type)]);
210210
let meta = json!({"argumentPath": argument_path, "argument": argument, "selectionPath": selection_path, "underlyingError": &err_msg});
211211
(message, Some(meta))
212212
} else {
213213
let message = format!(
214-
"Invalid argument agument value. `{}` is not a valid `{}`",
214+
"Invalid argument value. `{}` is not a valid `{}`",
215215
value, &expected_argument_type
216216
);
217217
let argument = ArgumentDescription::new(*argument_name, vec![Cow::Borrowed(expected_argument_type)]);

query-compiler/core-tests/tests/query_validation_tests/invalid_argument_value.expected.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"is_panic": false,
3-
"message": "Unable to match input value to any allowed input type for the field. Parse errors: [Unable to match input value to any allowed input type for the field. Parse errors: [Invalid argument agument value. `1983-10-31R10:20:00.000Z` is not a valid `ISO-8601 DateTime`. Underlying error: input contains invalid characters, Invalid argument type. `dob` should be of any of the following types: `Null`], Unable to match input value to any allowed input type for the field. Parse errors: [Invalid argument agument value. `1983-10-31R10:20:00.000Z` is not a valid `ISO-8601 DateTime`. Underlying error: input contains invalid characters, Invalid argument type. `dob` should be of any of the following types: `Null`]]",
3+
"message": "Unable to match input value to any allowed input type for the field. Parse errors: [Unable to match input value to any allowed input type for the field. Parse errors: [Invalid argument value. `1983-10-31R10:20:00.000Z` is not a valid `ISO-8601 DateTime`. Underlying error: input contains invalid characters, Invalid argument type. `dob` should be of any of the following types: `Null`], Unable to match input value to any allowed input type for the field. Parse errors: [Invalid argument value. `1983-10-31R10:20:00.000Z` is not a valid `ISO-8601 DateTime`. Underlying error: input contains invalid characters, Invalid argument type. `dob` should be of any of the following types: `Null`]]",
44
"meta": {
55
"kind": "Union",
66
"errors": [

0 commit comments

Comments
 (0)