Slightly improve mount error message
authorMichael Prokop <mika@grml.org>
Mon, 2 Mar 2009 18:29:23 +0000 (19:29 +0100)
committerMichael Prokop <mika@grml.org>
Mon, 2 Mar 2009 18:29:23 +0000 (19:29 +0100)
grml2usb

index 9ca8cfe..1f73336 100755 (executable)
--- a/grml2usb
+++ b/grml2usb
@@ -841,7 +841,7 @@ def mount(source, target, mount_options):
     proc = subprocess.Popen(["mount"] + list(mount_options) + [source, target])
     proc.wait()
     if proc.returncode != 0:
     proc = subprocess.Popen(["mount"] + list(mount_options) + [source, target])
     proc.wait()
     if proc.returncode != 0:
-        raise CriticalException("Error executing mount")
+        raise CriticalException("Error executing mount (no filesystem on the partition?)")
     else:
         logging.debug("register_mountpoint(%s)" % target)
         register_mountpoint(target)
     else:
         logging.debug("register_mountpoint(%s)" % target)
         register_mountpoint(target)