Commits

Oben Sonne committed 2101abd

Improve output on errors

  • Participants
  • Parent commits 2714f84

Comments (0)

Files changed (1)

             msg += "mount point does not exist or is not a directory"
         else:
             cmd = ["encfs", "-S", epath, mpoint]
-            p = subprocess.Popen(cmd, stdin=subprocess.PIPE,
-                                 stdout=subprocess.PIPE)
-            out = p.communicate(input="%s\n" % item.secret)[0].strip("\n")
-            msg += p.returncode and out or "OK"
+            p = subprocess.Popen(cmd, stdin=subprocess.PIPE)
+            p.communicate(input="%s\n" % item.secret)
+            msg += p.returncode and "FAILED" or "OK"
             
         print(msg)