1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-27 18:28:42 +00:00

Merge pull request #4656 from emichael/master

Fix invalid archive error message
This commit is contained in:
TW 2019-07-01 19:10:08 +02:00 committed by GitHub
commit d02356e9c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -500,7 +500,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