[Xfce4-commits] <thunar-volman:master> Print a bit more info what type is not supported.
Nick Schermer
noreply at xfce.org
Sun Dec 9 21:16:03 CET 2012
Updating branch refs/heads/master
to 337b272bf5c55753bae76546b4f85a5bd249f7c8 (commit)
from 460e37dbb0936e25f13f433ac24e1fd4c81cc5e5 (commit)
commit 337b272bf5c55753bae76546b4f85a5bd249f7c8
Author: Nick Schermer <nick at xfce.org>
Date: Sun Dec 9 21:13:44 2012 +0100
Print a bit more info what type is not supported.
thunar-volman/tvm-block-device.c | 2 +-
thunar-volman/tvm-device.c | 3 ++-
thunar-volman/tvm-input-device.c | 2 +-
thunar-volman/tvm-usb-device.c | 2 +-
4 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/thunar-volman/tvm-block-device.c b/thunar-volman/tvm-block-device.c
index 56969ed..072f198 100644
--- a/thunar-volman/tvm-block-device.c
+++ b/thunar-volman/tvm-block-device.c
@@ -916,7 +916,7 @@ automount_disc:
{
/* generate an error for logging */
g_set_error (context->error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
- _("Unknown block device type"));
+ _("Unknown block device type \"%s\""), devtype);
/* finish processing the device */
tvm_device_handler_finished (context);
diff --git a/thunar-volman/tvm-device.c b/thunar-volman/tvm-device.c
index 7249769..90cf94b 100644
--- a/thunar-volman/tvm-device.c
+++ b/thunar-volman/tvm-device.c
@@ -136,7 +136,8 @@ tvm_device_added (TvmContext *context)
else
{
g_set_error (context->error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
- _("Device type not supported"));
+ _("Device type \"%s\" not supported"),
+ g_udev_device_get_property (context->device, "DEVNAME"));
g_main_loop_quit (context->loop);
}
}
diff --git a/thunar-volman/tvm-input-device.c b/thunar-volman/tvm-input-device.c
index 71af8ac..d78ce95 100644
--- a/thunar-volman/tvm-input-device.c
+++ b/thunar-volman/tvm-input-device.c
@@ -138,7 +138,7 @@ tvm_input_device_added (TvmContext *context)
{
/* return an error because we cannot handle the input device */
g_set_error (context->error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
- _("Unsupported input device type"));
+ _("Unsupported input device type \"%s\""), devname);
}
/* finish processing the device */
diff --git a/thunar-volman/tvm-usb-device.c b/thunar-volman/tvm-usb-device.c
index c5b3613..140f50e 100644
--- a/thunar-volman/tvm-usb-device.c
+++ b/thunar-volman/tvm-usb-device.c
@@ -97,7 +97,7 @@ tvm_usb_device_added (TvmContext *context)
{
/* return an error because we cannot handle the usb device */
g_set_error (context->error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
- _("Unsupported USB device type"));
+ _("Unsupported USB device type \"%s\""), driver);
}
/* finish processing the device */
More information about the Xfce4-commits
mailing list