Skip to content

Commit

Permalink
shorten TAMRequiredError error msg
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ThomasWaldmann committed Nov 13, 2023
1 parent 96ce241 commit f804b28
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions docs/internals/frontends.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
5 changes: 0 additions & 5 deletions src/borg/crypto/key.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f804b28

Please sign in to comment.