Commit 09461342 authored by Ondrej Holy's avatar Ondrej Holy

gio-tool: Return error if there are not any volumes to mount

Print error and return error code if device doesn't contain any
volumes to mount.
parent bcb1bfda
......@@ -946,8 +946,8 @@ mount_with_device_file (const char *device_file)
if (outstanding_mounts == 0)
g_print ("%s: %s\n", device_file, _("No volume for device file"));
print_error ("%s: %s", device_file, _("No volume for device file"));
success = FALSE;
g_object_unref (volume_monitor);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment