mirror of
https://github.com/borgbackup/borg.git
synced 2026-06-08 16:23:42 -04:00
Merge pull request #4658 from emichael/1.1-maint
1.1-maint: Fix invalid archive error message
This commit is contained in:
commit
737869449c
1 changed files with 1 additions and 1 deletions
|
|
@ -1205,7 +1205,7 @@ def archivename_validator():
|
|||
def validator(text):
|
||||
text = replace_placeholders(text)
|
||||
if '/' in text or '::' in text or not text:
|
||||
raise argparse.ArgumentTypeError('Invalid repository name: "%s"' % text)
|
||||
raise argparse.ArgumentTypeError('Invalid archive name: "%s"' % text)
|
||||
return text
|
||||
return validator
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue