Fixing an error in the exception that is swallowing the real parsing error.