mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 23:46:17 +01:00
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:
parent
bcb1bfda52
commit
094613425e
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user