Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing the uncaught error when a Country doesnt exist #61

Merged
merged 2 commits into from
Feb 17, 2015

Conversation

edsadr
Copy link
Contributor

@edsadr edsadr commented Jan 13, 2015

No description provided.

@edsadr edsadr mentioned this pull request Jan 13, 2015
@@ -79,7 +79,7 @@ function generate_name ($database, $country = ANY, $language = ANY, $gender = AN
}
}

if (!$found) throw new Exception('No matching pool found');
if (!$found) throw new Exception('No matching country or language found');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer to keep calling this pool as it's not just country or language, it's any top level entry in the database, usually selected by just a country or a country and language combination, but never just a language. The code also commonly uses the word pool.

@ClaudioAlbertin
Copy link
Collaborator

If you can change that I'll merge it.

@edsadr
Copy link
Contributor Author

edsadr commented Jan 16, 2015

Sure thing :)

2015-01-16 11:23 GMT-05:00 Claudio Albertin notifications@github.com:

If you can change that I'll merge it.


Reply to this email directly or view it on GitHub
#61 (comment).

@edsadr
Copy link
Contributor Author

edsadr commented Jan 16, 2015

Just updated it

thm pushed a commit that referenced this pull request Feb 17, 2015
Fixing the uncaught error when a Country doesnt exist
@thm thm merged commit 237b9d6 into thm:master Feb 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants