The error message would be better IMO, if it explicitely pointed to the offending (non-)digit.