diff --git a/attic/archiver.py b/attic/archiver.py index d0d1f6f92..b9295e87e 100644 --- a/attic/archiver.py +++ b/attic/archiver.py @@ -10,6 +10,7 @@ import stat import sys import textwrap +import traceback from attic import __version__ from attic.archive import Archive, ArchiveChecker @@ -852,12 +853,14 @@ def main(): try: exit_code = archiver.run(sys.argv[1:]) except Error as e: + traceback.print_exc() archiver.print_error(e.get_message()) exit_code = e.exit_code except RemoteRepository.RPCError as e: print(e) exit_code = 1 except KeyboardInterrupt: + traceback.print_exc() archiver.print_error('Error: Keyboard interrupt') exit_code = 1 else: