summaryrefslogtreecommitdiff
path: root/gio
diff options
context:
space:
mode:
authorOndrej Holy <oholy@redhat.com>2016-12-16 14:43:57 +0100
committerOndrej Holy <oholy@redhat.com>2017-04-10 10:14:04 +0200
commit094613425ee949def2bcac83dcda3eee8b6856df (patch)
treea1967e70e7aa81a3c6b3f1fecf1cc14c8b47586a /gio
parentbcb1bfda52a8c650c19c419e247ccfac9451640a (diff)
downloadglib-094613425ee949def2bcac83dcda3eee8b6856df.tar.gz
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
Diffstat (limited to 'gio')
-rw-r--r--gio/gio-tool-mount.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gio/gio-tool-mount.c b/gio/gio-tool-mount.c
index 6f5cbb8ab..eb9c9649c 100644
--- a/gio/gio-tool-mount.c
+++ b/gio/gio-tool-mount.c
@@ -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);