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.

https://bugzilla.gnome.org/show_bug.cgi?id=776169
This commit is contained in:
Ondrej Holy 2016-12-16 14:43:57 +01:00
parent bcb1bfda52
commit 094613425e

View File

@ -946,8 +946,8 @@ mount_with_device_file (const char *device_file)
if (outstanding_mounts == 0) 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"));
return; success = FALSE;
} }
g_object_unref (volume_monitor); g_object_unref (volume_monitor);