mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-09 19:06:15 +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)
|
||||
{
|
||||
g_print ("%s: %s\n", device_file, _("No volume for device file"));
|
||||
return;
|
||||
print_error ("%s: %s", device_file, _("No volume for device file"));
|
||||
success = FALSE;
|
||||
}
|
||||
|
||||
g_object_unref (volume_monitor);
|
||||
|
Loading…
Reference in New Issue
Block a user