Răsfoiți Sursa

fix misleading hint the fuse ImportError handler gave, fixes #237

Thomas Waldmann 10 ani în urmă
părinte
comite
ee1dc89b52
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      attic/archiver.py

+ 2 - 2
attic/archiver.py

@@ -242,8 +242,8 @@ Type "Yes I am sure" if you understand this and want to continue.\n""")
         """Mount archive or an entire repository as a FUSE fileystem"""
         """Mount archive or an entire repository as a FUSE fileystem"""
         try:
         try:
             from attic.fuse import AtticOperations
             from attic.fuse import AtticOperations
-        except ImportError:
-            self.print_error('the "llfuse" module is required to use this feature')
+        except ImportError as e:
+            self.print_error('loading fuse support failed [ImportError: %s]' % str(e))
             return self.exit_code
             return self.exit_code
 
 
         if not os.path.isdir(args.mountpoint) or not os.access(args.mountpoint, os.R_OK | os.W_OK | os.X_OK):
         if not os.path.isdir(args.mountpoint) or not os.access(args.mountpoint, os.R_OK | os.W_OK | os.X_OK):