shorten TAMRequiredError error msg

Users using recently created repos (after borg 1.0.9) or
who followed the upgrade procedure of 1.0.9 or >1.2.4 will
never see this error msg.

So, have it as short as and similar to the ArchiveTAMRequiredError.
This commit is contained in:
Thomas Waldmann 2023-11-13 20:31:46 +01:00
parent 41351af635
commit f6279eac9d
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01
2 changed files with 0 additions and 10 deletions

View file

@ -689,11 +689,6 @@ Errors
Data integrity error: {}
TAMRequiredError rc: 98 traceback: yes
Manifest is unauthenticated, but it is required for this repository.
This either means that you are under attack, or that you modified this repository
with a Borg version older than 1.0.9 after TAM authentication was enabled.
In the latter case, use "borg upgrade --tam --force '{}'" to re-authenticate the manifest.
TAMUnsupportedSuiteError rc: 99 traceback: yes
Could not verify manifest: Unsupported suite {!r}; a newer version is needed.

View file

@ -90,11 +90,6 @@ class RepoKeyNotFoundError(Error):
class TAMRequiredError(IntegrityError):
__doc__ = textwrap.dedent("""
Manifest is unauthenticated, but it is required for this repository.
This either means that you are under attack, or that you modified this repository
with a Borg version older than 1.0.9 after TAM authentication was enabled.
In the latter case, use "borg upgrade --tam --force '{}'" to re-authenticate the manifest.
""").strip()
traceback = True
exit_mcode = 98