Skip to content

Commit eff656e

Browse files
committed
fix: Incorrect message for ERROR_ARGUMENTS_INCORRECT_TYPE error
1 parent 9303090 commit eff656e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/lib/traverse-get.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ bash_object.traverse-get() {
177177
fi
178178
;;
179179
array)
180-
bash_object.util.die 'ERROR_ARGUMENTS_INCORRECT_TYPE' "Queried for string, but found existing $vmd_dtype"
180+
bash_object.util.die 'ERROR_ARGUMENTS_INCORRECT_TYPE' "Queried for object, but found existing $vmd_dtype"
181181
return
182182
;;
183183
*)
@@ -188,7 +188,7 @@ bash_object.traverse-get() {
188188
elif [ "$final_value_type" = array ]; then
189189
case "$vmd_dtype" in
190190
object)
191-
bash_object.util.die 'ERROR_ARGUMENTS_INCORRECT_TYPE' "Queried for string, but found existing $vmd_dtype"
191+
bash_object.util.die 'ERROR_ARGUMENTS_INCORRECT_TYPE' "Queried for array, but found existing $vmd_dtype"
192192
return
193193
;;
194194
array)

0 commit comments

Comments
 (0)