I don't agree with this change.  If the input is a number then it is valid, so there is no "invalid number" in this sense.
We should change it to: `... error if the input is not a number`