Fix error message.
[grml2usb.git] / grml2usb
index 77e72ad..63c26b3 100755 (executable)
--- a/grml2usb
+++ b/grml2usb
@@ -1109,7 +1109,8 @@ def identify_grml_flavour(mountpath):
 
     if not version_files:
         logging.critical("Error: could not find grml-version file.")
-        raise
+        cleanup()
+        sys.exit(1)
 
     flavours = []
     logging.debug("version_files = %s", version_files)
@@ -1459,7 +1460,7 @@ def install_grml(mountpoint, device):
 
     device_mountpoint = device
     if os.path.isdir(device):
-        logging.info("Specified device is not a directory, therefore not mounting.")
+        logging.info("Specified device is a directory, therefore not mounting.")
         remove_device_mountpoint = False
     else:
         device_mountpoint = tempfile.mkdtemp(prefix="grml2usb")