Skip to content

Commit e5226f1

Browse files
committed
fix missing text
1 parent 2b3875d commit e5226f1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/dsc-lib/locales/en-us.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,7 @@ indexNotValid = "Index is not a valid number"
572572
indexOutOfBounds = "Index is out of bounds"
573573
indexOnNonArray = "Index access on non-array value"
574574
invalidIndexType = "Invalid index type"
575+
propertyNameNotString = "Property name is not a string"
575576

576577
[parser.functions]
577578
foundErrorNode = "Found error node parsing function"

lib/dsc-lib/src/parser/expressions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ impl Expression {
8383
},
8484
"propertyName" => {
8585
let Some(string_node) = index_value.child_by_field_name("string") else {
86-
return Err(DscError::Parser(t!("parser.expression.propertyNameNotFound").to_string()));
86+
return Err(DscError::Parser(t!("parser.expression.propertyNameNotString").to_string()));
8787
};
8888
let value = string_node.utf8_text(statement_bytes)?;
8989
debug!("{}", t!("parser.expression.propertyNameValue", value = value : {:?}));

0 commit comments

Comments
 (0)