mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-07 11:43:30 +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:
|
if election_board_mismatch or org_type_mismatch:
|
||||||
message = (
|
message = (
|
||||||
"Cannot add organization_type and generic_org_type simultaneously "
|
"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)
|
logger.error("_validate_new_instance: %s", message)
|
||||||
raise ValueError(message)
|
raise ValueError(message)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue