could we also add similar function for other error `should be a number`?