File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -572,6 +572,7 @@ indexNotValid = "Index is not a valid number"
572572indexOutOfBounds = " Index is out of bounds"
573573indexOnNonArray = " Index access on non-array value"
574574invalidIndexType = " Invalid index type"
575+ propertyNameNotString = " Property name is not a string"
575576
576577[parser .functions ]
577578foundErrorNode = " Found error node parsing function"
Original file line number Diff line number Diff 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 : { : ?} ) ) ;
You can’t perform that action at this time.
0 commit comments