Skip to content

Commit

Permalink
use correct error string
Browse files Browse the repository at this point in the history
  • Loading branch information
sbfnk committed Jan 25, 2024
1 parent dbd2993 commit 10c6d8e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions R/contact_matrix.r
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,7 @@ contact_matrix <- function(survey, countries = NULL, survey.pop, age.limits, fil
)
survey <- get_survey(survey)
} else if (!inherits(survey, "survey")) {
stop(
"'survey' must be a survey object (created using)",
"or `get_survey()`)."
)
stop(error_string)
}

## clean the survey
Expand Down

0 comments on commit 10c6d8e

Please sign in to comment.