Skip to content

Improve error message when acoustic_project_code is not found #428

@PietrH

Description

@PietrH

Several functions return an error message when a value is provided but it can't be found in the respective list function:

acoustic_project_code is checked against list_acoustic_project_codes() via the helper check_value().

The error currently lists all the provided values against all possible values, this is a bit much. It would be better to only mention the values that do not match, and mention less example valid values. Maybe only the valid values that start with the same character?

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions