mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
Prettify error message
This commit is contained in:
parent
625cb4adde
commit
4aab600e7c
1 changed files with 2 additions and 1 deletions
|
|
@ -54,10 +54,11 @@ class JobFailed(RuntimeError):
|
|||
def validate_section_name(name, section_type):
|
||||
invalid = set(name) - SECTION_NAME_CHARS
|
||||
if invalid:
|
||||
chars_display = ''.join(sorted(SECTION_NAME_CHARS))
|
||||
raise CliError('The {}-section {!r} contains invalid characters. Only '
|
||||
'the following characters are allowed for storage and '
|
||||
'pair names:\n{}'.format(section_type, name,
|
||||
SECTION_NAME_CHARS))
|
||||
chars_display))
|
||||
|
||||
|
||||
def _parse_old_config_list_value(d, key):
|
||||
|
|
|
|||
Loading…
Reference in a new issue