Skip to content

Improve epiparameter_db() error message when disease/pathogen/epi_name not in DB#452

Open
joshwlambert wants to merge 1 commit intomainfrom
db-name-error-msg
Open

Improve epiparameter_db() error message when disease/pathogen/epi_name not in DB#452
joshwlambert wants to merge 1 commit intomainfrom
db-name-error-msg

Conversation

@joshwlambert
Copy link
Member

This PR addresses #450 by improving the error message from .filter_epiparameter_db(), called by epiparameter_db(), when the disease, pathogen or epiparameter name is not found in the database. It adds a message telling the user to check spelling as this is a common reason for the error being throw, see example given by @Karim-Mane in #450.

It also uses {cli} to style the error message to try and emphasise the important parts of the error message.

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.

1 participant