Tested versions
Reproducible in: 4.5.1
System information
Any
Issue description
If you try to rename a node using the editor, it will popup an error when then name contains invalid characters, and will replace them with an underscore:
When you do the same thing via code, it will silently replace the invalid characters with an underscore, without printing any errors:
Steps to reproduce
Create a node and add the following in the script:
func _ready() -> void:
name = "hellow.world"
Minimal reproduction project (MRP)
n/a