Don't pass exception message to parse10() helper
It doesn't make much sense to use a variable for this message when it is actually always the same. Just use the literal string in the function itself. Try to make the message more clear by explaining why did the error occur more precisely.
Showing with 9 additions and 10 deletions