Improved error reporting of numbers when it is not a valid number