mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-06 19:23:23 +02:00
print values in error log
This commit is contained in:
parent
57da90d8a0
commit
dafac97776
1 changed files with 2 additions and 1 deletions
|
@ -245,7 +245,8 @@ class CreateOrUpdateOrganizationTypeHelper:
|
|||
if election_board_mismatch or org_type_mismatch:
|
||||
message = (
|
||||
"Cannot add organization_type and generic_org_type simultaneously "
|
||||
"when generic_org_type, is_election_board, and organization_type values do not match."
|
||||
"when generic_org_type ({}), is_election_board ({}), and organization_type ({}) values do not match."
|
||||
.format(generic_org_type, self.instance.is_election_board, organization_type)
|
||||
)
|
||||
logger.error("_validate_new_instance: %s", message)
|
||||
raise ValueError(message)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue